open-telemetry / opentelemetry-proto

OpenTelemetry protocol (OTLP) specification and Protobuf definitions
https://opentelemetry.io/docs/specs/otlp/
Apache License 2.0
606 stars 263 forks source link

Add metric.metadata for supporting additional metadata on metrics #514

Closed dashpole closed 9 months ago

dashpole commented 12 months ago

Part of https://github.com/open-telemetry/opentelemetry-specification/issues/3058

Alternative to #496.

Language is borrowed from scope attributes, with the addition of: Attributes are non-identifying.

The primary motivation is to support the prometheus unknown type without explicitly adding it to the data model.

This provides a place for additional information about metrics to be provided that isn't associated with individual data points. It is non-identifying to ensure it can be safely ignored by exporters if they don't support them.

Examples of problems this could be used to solve (not proposed, just examples):

Alternatives:

@bogdandrutu @jack-berg @jsuereth @jmacd @tigrannajaryan

carlosalberto commented 10 months ago

It seems we are good to go, specially after 1.1.0 was released. @bogdandrutu maybe a last look?

carlosalberto commented 10 months ago

I think we are ready to merge (briefly mentioned this in the Spec call a week or two ago, and no reviews ever since).

cc @bogdandrutu