Documentation
¶
Overview ¶
Package trace provides a go-restful filter that sets the X-Ab-TraceID request ID: it reads the request header, generates an ID when there is none, and returns it in the response header.
Deprecated: requests are identified by their OpenTelemetry trace ID instead of X-Ab-TraceID. Use OpenTelemetry tracing (go.opentelemetry.io/otel) to create and propagate it. This package is kept for compatibility and gets no new features.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter() restful.FilterFunction
func FilterWithOption ¶ added in v4.4.0
func FilterWithOption(traceIDType IDType) restful.FilterFunction
Types ¶
Click to show internal directories.
Click to hide internal directories.