Documentation ¶
Index ¶
- func AddSpanError(span trace.Span, err error)deprecated
- func AddSpanEvents(span trace.Span, name string, events map[string]string)deprecated
- func AddSpanTags(span trace.Span, tags map[string]string)deprecated
- func ConstructOtelTracer() *otelTracerdeprecated
- func FailSpan(span trace.Span, msg string)deprecated
- func NewHttpSpan(ctx context.Context, name string, operation string, ...) (context.Context, trace.Span)deprecated
- func NewSpan(ctx context.Context, args ...string) (context.Context, trace.Span)deprecated
- func NewTraceProvider(ctx context.Context) (*sdktrace.TracerProvider, error)
- func RecordSpan(ctx context.Context) (context.Context, trace.Span)
- func SpanFromContext(ctx context.Context) trace.Spandeprecated
- func Start(ctx context.Context) (context.Context, trace.Span)deprecated
- func StartWorker(ctx context.Context) (context.Context, trace.Span)deprecated
- type HttpSpanAttribute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSpanError
deprecated
func AddSpanTags
deprecated
func ConstructOtelTracer
deprecated
func ConstructOtelTracer() *otelTracer
ConstructOtelTracer is retained for compatibility with version 1.
Deprecated: Use NewTraceProvider instead. See v2/example/server/main.go
func NewHttpSpan
deprecated
func NewTraceProvider ¶
func NewTraceProvider(ctx context.Context) (*sdktrace.TracerProvider, error)
NewTraceProvider return opentelemetry trace provider.
func RecordSpan ¶
RecordSpan to record span.
func SpanFromContext
deprecated
Types ¶
Click to show internal directories.
Click to hide internal directories.