-
Notifications
You must be signed in to change notification settings - Fork 965
Open
Labels
area:data-modelFor issues related to data modelFor issues related to data modelarea:sdkRelated to the SDKRelated to the SDKrelease:allowed-for-gaEditorial changes that can still be added before GA since they don't require action by SIGsEditorial changes that can still be added before GA since they don't require action by SIGsspec:metricsRelated to the specification/metrics directoryRelated to the specification/metrics directory
Description
What are you trying to achieve?
As #1130 is nearing completion we're aiming to support Attribute limits in all models, which have Attributes. However, Metrics cause additional difficulties, because truncation and/or deletion of their attributes could affect their identity, which requires further discussion.
Additional context.
Some notes from a comment on open-telemetry/opentelemetry-specification#1130:
- Should attribute truncation in metrics be considered user configuration error? Relevant to Define guidelines for messaging about excessive amounts of recorded data semantic-conventions#1163
- Metric Identity overlap post-truncation
- Which attributes should be kept for metrics? (@reyang has this hint-api idea for preserving important attributes)
- Should attribute truncation happen before or after View attribute truncation?
And some more ideas from another comment in open-telemetry/opentelemetry-specification#1130:
- Limiting attribute length can lead to duplicate (identity) metric points being exported, especially for verbose labels where the tailing-end of the label contains the important part. E.g. `"processor"; "com.java.really.long.package.name.FooBar". In this case, we should be encouraging users to use the shortest, readable metric attributes, but is otherwise considered an error state.
- Limiting the # of attributes could lead to duplicate metric time series being emitted from the SDK. Here we should inform users that this is considered a configuration error, and we expect them to provide a high enough value for metric streams or provide View aggregation to limit high attribute-count metrics. We can leave the error reporting + mechanism for this TBD, but we need to call out this is a very real problem in the current (stable) data model.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:data-modelFor issues related to data modelFor issues related to data modelarea:sdkRelated to the SDKRelated to the SDKrelease:allowed-for-gaEditorial changes that can still be added before GA since they don't require action by SIGsEditorial changes that can still be added before GA since they don't require action by SIGsspec:metricsRelated to the specification/metrics directoryRelated to the specification/metrics directory