Supports configuring `sampleRate` to limit the number of reported logs when `--experimental.otlpLogs=true` is enabled
Author: linghengqianCreated Sep 11, 2026Updated Sep 17, 2026
Labelskind/enhancementcontributor/wantedarea/accesslogsarea/otel
Welcome!
- Yes, I've searched similar issues on GitHub and didn't find any.
- Yes, I've searched similar issues on the Traefik community forum and didn't find any.
What did you expect to see?
- Supports configuring
sampleRateto limit the number of reported logs when--experimental.otlpLogs=trueis enabled. - Currently, Traefik supports sending access logs to an OTLP backend, but it does not support limiting the volume of logs sent via a
sampleRateattribute—unlike the mechanism used for traces. This means that access logs are reported unconditionally for every single request, which is not always the behavior I desire. See https://doc.traefik.io/traefik/reference/install-configuration/observability/logs-and-accesslogs/#configuration-options_3 .
Source: traefik/traefik