[SEMCONV] Metrics are incorrectly prefixed with metric.
#3226
Labels
bug
Something isn't working
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Describe your environment OpenTelemetry 1.18
Steps to reproduce
When using
CreateXXXMetricYY()
functions fromopentelemetry/api/semconv
(for example,CreateAsyncInt64MetricProcessContextSwitches()
or any other similar function), they create a metric prefixed withmetric.
(for example,metric.process.context_switches
).I believe this is not correct: for example, for the Context Switches metric, the specification says that the name is
process.context_switches
, notmetric.process.context_switches
.What is the expected behavior?
Metric names match the specification.
What is the actual behavior?
Metric names have an additional prefix of
metric.
.Additional context
I think this bug was introduced in #3105, here:
By looking at the Process Metrics Model, we see:
id
is what we have now,metric_name
is what we should probably have.The fix I think will be (
buildscripts/semantic-convention/templates/registry/semantic_metrics-h.j2
)The text was updated successfully, but these errors were encountered: