OpenTelemetry directives

otel_trace_context

Controls trace context processing; propagate combines incoming extraction and outgoing injection. Requires optional tracing module.

Formal Syntax & Structure

nginx syntaxnginx
otel_trace_context extract | inject | propagate | ignore;

Parameters & Attributes

NameTypeDescription
modeextract | inject | propagate | ignoreExtract incoming context, inject fresh context, combine extraction and injection, or skip processing. Default ignore; review trust boundary.

Working Example

Example Snippetnginx
otel_trace_context propagate;
Nginx Reference