Trace Context
W3C Trace Context header propagation
Versions marked “overview” do not contain this page. Selecting one opens that version’s documentation overview.
Category: Practical
Task: W3C Trace Context header propagation
Prerequisites: The product runtime and any backend services referenced by this configuration.
This configuration comes from the selected release. The example has not been run here; external services are not bundled.
Download the source file.
# Trace Context Propagation
#
# W3C Trace Context header propagation. Parses incoming
# traceparent/tracestate, joins existing traces or starts
# new ones, and injects updated headers upstream.
# request_id provides a correlation ID alongside tracing.
#
# Usage:
# cargo run -p praxis-proxy -- -c examples/configs/observability/trace-context.yaml
# curl -H 'traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01' http://localhost:8080/
listeners:
- name: default
address: "127.0.0.1:8080"
filter_chains:
- main
filter_chains:
- name: main
filters:
- filter: request_id
- filter: trace_context
- filter: router
routes:
- path_prefix: "/"
cluster: backend
- filter: load_balancer
clusters:
- name: backend
endpoints:
- "127.0.0.1:3000"
insecure_options:
allow_private_endpoints: true # example proxies to local backends