Skip to content

OTel sampler is by default "AlwaysOn" but the documentation states different

What happened: The documentation states that the OTel sampler is by default set to "AlwaysOff". But in fact it is "AlwaysOn".

What you expected to happen: That the documentation aligns with the code. IMHO it would be best if the code is changed, because a "AlwaysOn" setting can be somewhat heavy in regards to the amount of created traces.

Anything else we need to know: Default is configured here: https://github.com/kubernetes/ingress-nginx/blob/5ae018e5df4ac54c5280a96b43808090a4c24ec5/internal/ingress/controller/config/config.go#L888

But documentation states something different on these places: https://github.com/kubernetes/ingress-nginx/blob/5ae018e5df4ac54c5280a96b43808090a4c24ec5/docs/user-guide/third-party-addons/opentelemetry.md?plain=1#L79 https://github.com/kubernetes/ingress-nginx/blob/5ae018e5df4ac54c5280a96b43808090a4c24ec5/docs/user-guide/nginx-configuration/configmap.md?plain=1#L167 https://github.com/kubernetes/ingress-nginx/blob/5ae018e5df4ac54c5280a96b43808090a4c24ec5/docs/user-guide/nginx-configuration/configmap.md?plain=1#L1049