You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Operators who deploy an application together with SDK can now configure e.g. the maximum number of attributes or events per span. This is done, among other things, to protect the application from excessive memory usage by monitoring SDK. But attribute values can still be arbitrary large.
Describe the solution you'd like
Add one more parameter to TraceConfig to allow for configuration of maximum size of attribute value. Values longer than this given threshold will be truncated.
Describe alternatives you've considered
This may be delegated to Collector, but that is too late to protect application from OOM.
Additional context
Although truncating AttributeValueString is simple (if we put aside the question of byte/chars/codepoint/grapheme), it is unclear how to truncate AttributeValueStringArray.
The text was updated successfully, but these errors were encountered:
TraceConfig already allows for configuring max number of events/links on spans and number of attributes. But this is not in spec yet: open-telemetry/opentelemetry-specification#182. So I want to continue this and allow to configure one more thing :) Who say that language cannot provide more configuration that spec dictates? ;)
Is your feature request related to a problem? Please describe.
Operators who deploy an application together with SDK can now configure e.g. the maximum number of attributes or events per span. This is done, among other things, to protect the application from excessive memory usage by monitoring SDK. But attribute values can still be arbitrary large.
Describe the solution you'd like
Add one more parameter to
TraceConfig
to allow for configuration of maximum size of attribute value. Values longer than this given threshold will be truncated.Describe alternatives you've considered
This may be delegated to Collector, but that is too late to protect application from OOM.
Additional context
Although truncating
AttributeValueString
is simple (if we put aside the question of byte/chars/codepoint/grapheme), it is unclear how to truncateAttributeValueStringArray
.The text was updated successfully, but these errors were encountered: