package
0.1.3
Repository: https://github.com/xwc1125/xwc1125-pkg.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package plugins.
Package provider.
Package util.

# Functions

CheckSetDefaultTextMapPropagator sets the default TextMapPropagator if it is not set previously.
CommonLabels returns common used attribute labels: net.host.ip, host.name.
Ctx create ctx with trace.
GetBaggageMap retrieves and returns the baggage values as map.
GetBaggageVar retrieves value and returns a *gvar.Var for specified key from baggage.
GetDefaultTextMapPropagator returns the default propagator for context propagation between peers.
GetSpanID retrieves and returns SpanId from context.
GetTraceID retrieves and returns TraceId from context.
No description provided by the author
MaxContentLogSize returns the max log size for request and response body, especially for HTTP/RPC request.
NewBaggage creates and returns a new Baggage object from given tracing context.
NewCarrier creates and returns a Carrier.
NewSpan creates a span and a context.Context containing the newly-created span.
NewTracer creates a named tracer that implements Tracer interface.
SetBaggageMap is a convenient function for adding map key-value pairs to baggage.
SetBaggageValue is a convenient function for adding one key-value pair to baggage.
SetSpanError record error to tracing system.
WithTraceID injects custom trace id into context to propagate.

# Structs

Baggage holds the data through all tracing spans.
No description provided by the author
Tracer warps tracer.Tracer for compatibility and extension.

# Type aliases

Carrier is the storage medium used by a TextMapPropagator.