-
Notifications
You must be signed in to change notification settings - Fork 512
Logs does not enforce limits #2577
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
Comments
Hi @cijothomas, can I take this ticket? In my understanding, what we should do are:
|
Thanks for volunteering this.
Please see if it is possible to implement it without increasing the record size. |
@lalitb thanks, could you assign me to this ticket?
Let me clarify, do you concern a size of each LogRecord instance? or is it about actual log which a processor composes from those instances? |
I was thinking if we can avoid that, as these two additional fields are configured at provider level and so will have same value across all the record instances. But don't see an easy way to do it for now, let's discuss this over the PR. |
I'd suggest to have more detailed design/discussion before attempting to implement this. It is unclear what is the need for enforcing the limits - if this is to comply with backends that has limits, then this maybe better off be done at the OTLP Exporter level. #1283 some prior discussions. Not everything is applicable here, Log API is redesigned to not to store anything, but delegates everything to the SDK. (Not opposed to the change, just trying to ensure we have the end goal clear and won't affect perf) |
Yes, It is stack allocated and clone/copied to Heap on BatchProcessor, so any increase in size will likely have some perf impact. |
Thanks both! Sure, I will consider the design and then let's discuss (probably here or on weekly meeting?) |
Hi @cijothomas and @lalitb I wrote a design document here: https://docs.google.com/document/d/1S-N9_cClLuOjthcpXATKCeHQXsTz5UWihG8UpV2ttGw/edit?usp=sharing. Please give me a feedback, or if you prefer another way such as writing it down on this issue or chatting in a meeting, please let me know. |
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/sdk.md#logrecord-limits
The text was updated successfully, but these errors were encountered: