In Traefik, is it possible to add a unique Request ID header to requests? I'd like to be able to correlate access logs with logs from backend services.
AFAIK there is no support for it, however here is a funcional workaround in Traefik 2.3.6:
# static config
...
[tracing]
# Workaround for the non support of Correlation/Request Id Header
# - https://github.com/traefik/traefik/issues/4640
# - https://github.com/traefik/traefik/pull/6707#issuecomment-640429009
[tracing.jaeger]
samplingParam = 0
traceContextHeaderName = "X-Correlation-Id"
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With