Documentation ¶
Index ¶
- func EventAdder() func(Context, *event.Event, error)
- func HTTPSpanStarter(tracer Tracer) func(*http.Request, string) (Context, func(Context))
- func Source(s source.Source, tracer Tracer) source.Source
- func SpanStarter(tracer Tracer) func(Context, api.Op) (Context, func(Context))
- func TraceDetacher() func(Context) Context
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventAdder ¶
func HTTPSpanStarter ¶
HTTPSpanStarter returns a function which can be used as webserver.Config.StartSpan callback.
func SpanStarter ¶
SpanStarter returns a function which can be used as server.Config.StartSpan callback.
func TraceDetacher ¶
func TraceDetacher() func(Context) Context
Types ¶
type Tracer ¶
type Tracer interface {
Start(ctx Context, spanName string, opts ...trace.SpanStartOption) (Context, trace.Span)
}
Tracer is a less restrictive edition of trace.Tracer.
Click to show internal directories.
Click to hide internal directories.