Documentation ¶
Index ¶
- func AutoError(span trace.Span, err error)
- func AutoSpan(ctx context.Context) (context.Context, trace.Span)
- func CtxFromHTTPHeader(ctx context.Context, h http.Header) context.Context
- func CtxFromMap(ctx context.Context, m map[string]string) context.Context
- func ExtractIDs(span trace.Span) (trace.TraceID, trace.SpanID)
- func Init(cfg Config)
- func InjectToHTTPHeader(ctx context.Context, h http.Header)
- func InjectToMap(ctx context.Context, m map[string]string)
- func ManualError(span trace.Span, err error, name string)
- func ManualSpan(ctx context.Context, name string) (context.Context, trace.Span)
- func Shutdown() error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoError ¶
AutoError record error to span with caller function name. If you need to use custom function name, use ManualError instead.
func AutoSpan ¶
AutoSpan generates a span with caller function name. If you need to use custom function name, use ManualSpan instead.
func ManualError ¶
ManualError record error to span with given name.
func ManualSpan ¶
ManualSpan generates a span with given name.
Types ¶
Click to show internal directories.
Click to hide internal directories.