Skip to content

[Metrics SDK] - Validate Instrument meta data (name, unit, description) #1712

@lalitb

Description

@lalitb

Metrics Specs specifies the Instrument naming rules - https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-naming-rule

Valid Instruments should be created only if the name, unit and description are compliant with these naming rules.

Also, adding it after GA would be a breaking change specifically for the non-compliant instruments created before enabling this validation. Once validation is enabled, it won't be possible to send the metrics for these non-compliant instruments.
So scoping this for GA.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions