telemetry

package
v0.0.0-...-6698953 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CarryTelemetryContext

func CarryTelemetryContext(ctx context.Context) context.Context

CarryTelemetryContext carries the trace context in a new background context

func GetCallerFuncName

func GetCallerFuncName() string

GetCallerFuncName returns the name of the function 2 levels higher in the stack.

func ReInjectContext

func ReInjectContext(ctx *context.Context)

ReInjectContext carries the trace context in a new background context

func StartSpan

func StartSpan(ctx *context.Context, tracerName string, name string, opts ...trace.SpanStartOption) trace.Span

StartSpan creates a new Open Telemetry tracer and starts a span with the given name and returns it. the context is updated with the new span.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL