httptrace

package module
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HTTPStatus     = label.Key("http.status")
	HTTPHeaderMIME = label.Key("http.mime")
	HTTPRemoteAddr = label.Key("http.remote")
	HTTPLocalAddr  = label.Key("http.local")
)

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 Inject

func Inject(ctx context.Context, req *http.Request, opts ...Option)

func NewClientTrace

func NewClientTrace(ctx context.Context) *httptrace.ClientTrace

func W3C

Client

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

Directories

Path Synopsis
otelhttptrace module
example Module
test Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL