Schema transformations should be able to convert metric units #3729
Labels
spec:miscellaneous
For issues that don't match any other spec label
triage:deciding:community-feedback
Open to community discussion. If the community can provide sufficient reasoning, it may be accepted
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.
The text was updated successfully, but these errors were encountered: