Skip tracing for Prometheus requests #45680
Unanswered
andreivaloshyn
asked this question in
Q&A
Replies: 2 comments
-
If you use https://istio.io/latest/docs/ops/integrations/prometheus/#option-1-metrics-merging, the prometheus metrics requests will bypass envoy and thus the tracing. I am not sure about other options though |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm using this way to remove unwanted Traces, like Prometheus requests. Istio traces -> Telemetry API -> Istio Extension Provider -> OTELCollector -> Jaeger.
Istiod Config:
OTELCollector config:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I need to skip traces for Prometheus call to
/metrics
endpoint.I tried to change
X-B3-Sampled
request header to "0" withVirtualService
and withEnvoyFilter
, but each time in response I see X-B3-Sampled: 1 and unwanted traces are in place :(I can delete/add/update custom tags in the same EnvoyFilter or VirtualSerive but I can't change
X-B3-Sampled
Is it possible to rewrite
X-B3-Sampled
to "0" based on/metrics
path and(or)user-agent
HTTP header to avoid unnecessary tracesBeta Was this translation helpful? Give feedback.
All reactions