tracing

package
Version: v1.2.132559162 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableDebug

func EnableDebug()

EnableDebug enables debugging traces for the session

func IsDebug

func IsDebug() bool

IsDebug checks if tracing is configured for debuggging

func SetTag

func SetTag(key string, value interface{}) opentracing.Tag

SetTag is a shortcut to create tags easily

func SetTagOnCtx

func SetTagOnCtx(ctx context.Context, key string, value interface{})

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.

Jump to

Keyboard shortcuts

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