Documentation ¶
Index ¶
- Variables
- func Extract(ctx context.Context, req *http.Request, opts ...Option) ([]label.KeyValue, []label.KeyValue, trace.SpanContext)
- func Inject(ctx context.Context, req *http.Request, opts ...Option)
- func NewClientTrace(ctx context.Context) *httptrace.ClientTrace
- func W3C(ctx context.Context, req *http.Request) (context.Context, *http.Request)
- type Option
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Extract ¶
func Extract(ctx context.Context, req *http.Request, opts ...Option) ([]label.KeyValue, []label.KeyValue, trace.SpanContext)
Returns the Attributes, Context Entries, and SpanContext that were encoded by Inject.
func NewClientTrace ¶
func NewClientTrace(ctx context.Context) *httptrace.ClientTrace
Types ¶
type Option ¶
type Option func(*config)
Option is a function that allows configuration of the httptrace Extract() and Inject() functions
func WithPropagators ¶
func WithPropagators(props propagation.Propagators) Option
WithPropagators sets the propagators to use for Extraction and Injection
Click to show internal directories.
Click to hide internal directories.