Skip to main content

Module context

Module context 

Source
Expand description

Span-level context helpers — component tagging, request enrichment. Span-level context helpers — component tagging, request enrichment.

Functions§

component_span
Returns a new tracing::Span with a component field set.
request_span
Returns a new tracing::Span enriched with HTTP request metadata.
set_correlation_id
Injects a correlation ID into the current span.
set_trace_id
Injects a trace ID into the current span.
set_user_id
Injects a user ID into the current span.