Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // String ... String = attribute.String )
Functions ¶
func ExtractTraceID ¶ added in v0.3.6
ExtractTraceID HTTP使用request.Context,不要使用错了
func IsGlobalTracerRegistered ¶ added in v0.8.0
func IsGlobalTracerRegistered() bool
IsGlobalTracerRegistered returns a `bool` to indicate if a tracer has been globally registered
Types ¶
type Tracer ¶ added in v0.8.0
type Tracer struct {
// contains filtered or unexported fields
}
Tracer is otel span tracer
func (*Tracer) Start ¶ added in v0.8.0
func (t *Tracer) Start(ctx context.Context, operation string, carrier propagation.TextMapCarrier, opts ...trace.SpanStartOption) (context.Context, trace.Span)
Start tracing span
Click to show internal directories.
Click to hide internal directories.