open-telemetry / opentelemetry-python

OpenTelemetry Python API and SDK
https://opentelemetry.io
Apache License 2.0
1.66k stars 568 forks source link

Semconv: use constants instead of literal in metric helpers #3973

Closed lmolkova closed 2 weeks ago

lmolkova commented 2 weeks ago

Description

Tiny semconv script improvement - generates metric helpers reusing constant name instead of string literal.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Does This PR Require a Contrib Repo Change?

Answer the following question based on these examples of changes that would require a Contrib Repo Change:

Checklist: