You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow trace instrumentation to sample requests decoupled from x-request-id #16530
If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via emailing [email protected] where the issue will be triaged appropriately.
Description:
Envoy couples its sampling logic to the x-request-id header which it expects to be a valid UUID. In case of a pre-existing x-request-id which is of a different format, Envoy will allow the value to be propagated but disables various features, including distributed tracing (e.g. by explicitly setting a x-b3-sampled: 0 in case of Zipkin instrumentation).
In brown field systems using the x-request-id, it is very well possible for it to hold different non UUID compliant values as it is generally described to hold an opaque random value. A good example is Nginx which typically uses a randomly generated 32 hexadecimal characters value.
This poses a problem to onboard a brown field platform that already utilizes the x-request-id without it being a UUID and needs distributed tracing to start from the first Envoy sidecar. Example being an existing Nginx ingress with an Envoy sidecar on its egress.
It would be great if Envoy could be configured or adjusted in behavior to allow x-request-ids it doesn't understand to not disable the sampling logic. Since distributed tracing has its own trace context there is no requirement for Envoy to tie it to the x-request-id nibble logic. This is a blocker for migrating an existing ecosystem into a service mesh environment with an Nginx ingress.
I also think the default assumption for a newcomer to Envoy would be that distributed trace sampling would not be affected by x-request-id as it has no meaning in existing tracing ecosystems.
Activity