Documentation ¶
Index ¶
- func Component(span opentracing.Span, component string)
- func CtxWith(parentCtx context.Context, operationName string, ...) (opentracing.Span, context.Context)
- func Error(span opentracing.Span, err error)
- func IDFromCtx(ctx context.Context) []byte
- func ResultLabel(span opentracing.Span, label string)
- func StartSpanFromCtx(ctx context.Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Component ¶ added in v0.6.0
func Component(span opentracing.Span, component string)
Component sets the 'component' tag according to the provided value.
func CtxWith ¶
func CtxWith(parentCtx context.Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)
CtxWith creates a new span and attaches it to the context, it also sets the debug id of the logger and the span id and attaches the logger to the context.
func Error ¶ added in v0.6.0
func Error(span opentracing.Span, err error)
Error sets the 'error' and 'error.msg' tags according to the provided error.
func ResultLabel ¶ added in v0.6.0
func ResultLabel(span opentracing.Span, label string)
ResultLabel sets the operation result label on the span.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.