opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

add a feature gate that disables the tee'ing of the logs.

Open codeboten opened this issue 6 months ago • 2 comments
trafficstars

#10544 gave users the ability to emit logs over OTLP as well as the console, there was a comment in the PR to add a feature gate to disable dual writing. This issue tracks the word needed to add this feature gate

          This PR gives users the option to start producing logs over OTLP, without breaking existing functionality. I would suggest we follow up this PR with a feature gate that disables the tee'ing of the logs.

This would give users that don't want to double emit the logs to turn off the local console logging if a provider is configured. This could become the default in the future if users support this idea.

One thing to note is that configuration of the logging today supports sampling logs, which the otel logging provider has no concept of at this time

Originally posted by @codeboten in https://github.com/open-telemetry/opentelemetry-collector/pull/10544#discussion_r1813181565

codeboten avatar May 12 '25 16:05 codeboten

Hey @codeboten, does this require further discussion? If not, I would be interested to provide a PR for its implementation :)

(feel free to assign me here)

ChrsMark avatar May 26 '25 12:05 ChrsMark

All yours @ChrsMark

codeboten avatar May 26 '25 15:05 codeboten