Documentation
¶
Overview ¶
Package tracectx lets a package read the trace id a context carries without importing OpenTelemetry: package telemetry sets TraceID when it initializes, so in a binary that links telemetry identity's audit events record the request's trace.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TraceID func(ctx context.Context) string
TraceID returns the id of the trace ctx belongs to, "" when it belongs to none. It is nil until package telemetry initializes.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.