open-telemetry / opentelemetry-specification

Specifications for OpenTelemetry
https://opentelemetry.io
Apache License 2.0
3.75k stars 889 forks source link

Support a sampling or aggregation mechanism for the logging signal #2237

Open codeboten opened 2 years ago

codeboten commented 2 years ago

What are you trying to achieve?

The tracing signal provides a sampler configuration to reduce the amount of traces emitted by an application, it would be useful to provide a similar capability in the logging signal. Maybe an aggregation mechanism would be more appropriate for logging.

Looking through the specification for logs, I didn't come across anything like this which is why I'm opening the issue.

bogdandrutu commented 2 years ago

the "tracing" signal provides a "sampler" in the SDK, but for logging we do not have an SDK defined yet.

wallezhang commented 2 years ago

the "tracing" signal provides a "sampler" in the SDK, but for logging we do not have an SDK defined yet.

Is there a plan to add sampler in logging?

atoulme commented 2 years ago

Linking things: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/9117 This spec PR, abandoned: https://github.com/open-telemetry/opentelemetry-specification/pull/2482