Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logs: Log a warning when an attribute is discarded due to limits #3935

Closed
emdneto opened this issue May 30, 2024 · 1 comment · Fixed by #3946
Closed

logs: Log a warning when an attribute is discarded due to limits #3935

emdneto opened this issue May 30, 2024 · 1 comment · Fixed by #3946
Assignees

Comments

@emdneto
Copy link
Member

emdneto commented May 30, 2024

Before opening a feature request against this repo, consider whether the feature should/could be implemented in the other OpenTelemetry client libraries. If so, please open an issue on opentelemetry-specification first.

Is your feature request related to a problem?
If so, provide a concise description of the problem.

Describe the solution you'd like
What do you want to happen instead? What is the expected behavior?

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).

Describe alternatives you've considered
Which alternative solutions or features have you considered?

Additional context
Add any other context about the feature request here.
LogRecordLimits

@emdneto
Copy link
Member Author

emdneto commented May 30, 2024

go implementation: open-telemetry/opentelemetry-go#5376

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants