Documentation ¶
Index ¶
- Constants
- func New(conf config.Configuration) (tracer opentracing.Tracer, closer io.Closer)
- func NewCtxWithTraceId(ctx context.Context) context.Context
- func NewTraceId() string
- func Set(conf config.Configuration) func()
- func TraceIdFromContext(ctx context.Context) (traceId string)
- func TraceIdSpanFromContext(ctx context.Context) (traceId string)
- type NullCloser
- type TraceId
Constants ¶
View Source
const KeyName = "traceId"
Variables ¶
This section is empty.
Functions ¶
func NewTraceId ¶
func NewTraceId() string
func Set ¶
func Set(conf config.Configuration) func()
func TraceIdFromContext ¶
TraceIdFromContext 从context中获取TraceId
func TraceIdSpanFromContext ¶
TraceIdSpanFromContext
Types ¶
type NullCloser ¶
type NullCloser struct { }
func (*NullCloser) Close ¶
func (*NullCloser) Close() error
Click to show internal directories.
Click to hide internal directories.