tracing

package
v0.0.0-...-cea0af2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyAlreadyExists = errors.New("key already exists")
	ErrKeyNotFound      = errors.New("key not found")
)
View Source
var (
	Enabled = false
)

Functions

func AddSpansFromResponse

func AddSpansFromResponse(req *http.Request, resp *http.Response)

func GetChromeTracingContext

func GetChromeTracingContext(req *http.Request) context.Context

func GetTracer

func GetTracer(ctx context.Context, name string) trace.Tracer

func TraceProvider

func TraceProvider(perspective string) (trace.TracerProvider, error)

Types

type KeyValueSpansPropagator

type KeyValueSpansPropagator struct {
	// contains filtered or unexported fields
}

func NewKeyValueSpansPropagator

func NewKeyValueSpansPropagator(serializedMap string) *KeyValueSpansPropagator

func (*KeyValueSpansPropagator) Extract

func (*KeyValueSpansPropagator) Inject

func (p *KeyValueSpansPropagator) Inject(ctx context.Context, key string) error

func (*KeyValueSpansPropagator) Serialize

func (p *KeyValueSpansPropagator) Serialize() string

Jump to

Keyboard shortcuts

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