Support for Sampling in OpenTelemetry Logger #5424
-
Hi, I see that it's possible to add a Is there currently any way to apply sampling settings to logs (e.g., Use case: In high-throughput applications, being able to control the volume of logs generated would be useful to avoid excessive log noise and reduce costs. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @gunzip, thanks for reaching out. We aim to implement https://github.com/open-telemetry/opentelemetry-specification/ with our Logs SDK, and there's no concept for Sampling on the client side this at the moment. We are not planning to add such a feature unless there's an effort in the specification to do this for all language implementations. This is mostly to avoid:
You may be able to request a feature over at the spec to get the ball rolling there, we will then eventually implement the feature here. Some ideas for workarounds: If you're tracing with OTel in the same app, then a One way to work around that would be to implement a custom |
Beta Was this translation helpful? Give feedback.
Hi @gunzip, thanks for reaching out.
We aim to implement https://github.com/open-telemetry/opentelemetry-specification/ with our Logs SDK, and there's no concept for Sampling on the client side this at the moment. We are not planning to add such a feature unless there's an effort in the specification to do this for all language implementations.
This is mostly to avoid:
You may be able to request a feature over at the spec to get the ball rolling there, we will then eventually implement the feature here.
Some ideas for workarounds:
If you're tracing with OTel in the same app, then a