Documentation ¶
Index ¶
- func EnableDebug()
- func IsDebug() bool
- func SetTag(key string, value interface{}) opentracing.Tag
- func SetTagOnCtx(ctx context.Context, key string, value interface{})
- func StartSpanFromContext(ctx context.Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)
- func StartTracing() func(opentracing.Span) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetTag ¶
func SetTag(key string, value interface{}) opentracing.Tag
SetTag is a shortcut to create tags easily
func SetTagOnCtx ¶
SetTagOnCtx is a shortcut to create tags easily
func StartSpanFromContext ¶
func StartSpanFromContext(ctx context.Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)
StartSpanFromContext create a span for the context
func StartTracing ¶
func StartTracing() func(opentracing.Span) string
StartTracing starts an OpenTracing UI on localhost:8700 inspired by: https://medium.com/opentracing/distributed-tracing-in-10-minutes-51b378ee40f1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.