Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶ added in v0.4.21
type Event interface{}
type Handler ¶
type Handler interface { // Tracer creates a new tracer with the given name. Tracer(ctx context.Context, name string) trace.Tracer // Span creates a new span with the context. Span(ctx context.Context, handler func(context.Context)) // AddEvent adds a new event with the given name and attributes to the span. AddEvent(ctx context.Context, event Event) }
Handler represents a tracing handler that provides functionality to create tracers, spans and add events.
Click to show internal directories.
Click to hide internal directories.