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

sdk/log: Log when an attribute was discarded or truncated due to limits

Open pellared opened this issue 1 year ago • 1 comments

From https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/sdk.md#logrecord-limits:

There SHOULD be a message printed in the SDK's log to indicate to the user that an attribute was discarded due to such a limit. To prevent excessive logging, the message MUST be printed at most once per LogRecord (i.e., not per discarded attribute).

pellared avatar May 08 '24 09:05 pellared

We should check if this is also needed for the attributes in trace/metric pipelines.

MrAlias avatar May 09 '24 17:05 MrAlias