Skip to content

Attribute limits not supported in Metrics #1830

@jtmalinowski

Description

@jtmalinowski

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:data-modelFor issues related to data modelarea:sdkRelated to the SDKrelease:allowed-for-gaEditorial changes that can still be added before GA since they don't require action by SIGsspec:metricsRelated to the specification/metrics directory

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions