Skip to content

Schema transformations should be able to convert metric units #3729

@pyohannes

Description

@pyohannes

What are you trying to achieve?

Recently the default unit for duration metrics was changed from milliseconds to seconds. This resulted (and will result) in breaking changes to existing metrics semantic conventions. Some related PRs/issues:

This change could be covered by automatic schema transformations by specifying the metric name, the old unit, the new unit, and a conversion factor.

Such a schema transformation would help telemetry consumers to mitigate the pain of such breaking changes, as data points from a metric from different versions of semantic conventions with different units could be aggregated into the same metric. This can help avoid severe disruptions for telemetry consumers.

Furthermore, the possibility of covering such changes by schema transformations gives more flexibility to semantic conventions authors, as without such a mechanism changing units for stable metrics would be impossible.

Metadata

Metadata

Assignees

Labels

spec:miscellaneousFor issues that don't match any other spec labeltriage:deciding:community-feedbackOpen to community discussion. If the community can provide sufficient reasoning, it may be accepted

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions