Envoy Gateway - configure telemetry tracing sampler? #8436
-
|
Hey there, I am unsure how to configure that though. And the "extension" is said to be "work-in-progress" in the note. And also I couldn't find what the default is:
From the behavior I would assume its ParentBased(root=TraceIdRatioBased) since even with Or is that something that can not yet be configured / is being worked on ("work-in-progess")? Any help / answer is much appreciated 😊 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
|
Right now, the only control exposed is With no
There is a workaround (I haven't tried but worth looking): You can use EnvoyPatchPolicy to inject a sampler into the generated xDS config: apiVersion: gateway.envoyproxy.io/v1alpha1
kind: EnvoyPatchPolicy
metadata:
name: tracing-sampler
spec:
targetRef:
group: gateway.networking.k8s.io
kind: Gateway
name: my-gateway
type: JSONPatch
jsonPatches:
- type: "type.googleapis.com/envoy.config.trace.v3.OpenTelemetryConfig"
operation:
op: add
path: "/sampler"
value:
name: envoy.tracers.opentelemetry.samplers.always_on
typed_config:
"@type": type.googleapis.com/envoy.extensions.tracers.opentelemetry.samplers.v3.AlwaysOnSamplerConfigThe available samplers are listed here. All are marked |
Beta Was this translation helpful? Give feedback.
@jan-mrm sorry indeed I didn't try it, so apologies the hack didn't work. feel free to raise an issue to support sampler configurability as issues tend to lead more to resolution than discussions. Please mention exactly the config you are looking to achieve