Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ID ¶
type ID string
ID represents a trace ID propagated between services.
func FromContext ¶
FromContext returns the ID value stored in ctx, if any.
func FromContextOrNew ¶
FromContextOrNew returns the ID value stored in ctx. If it fails to do so, it will add a new ID to the context.
Click to show internal directories.
Click to hide internal directories.