Update semconv template and 1.40.0 to use Enabled for metrics by dashpole · Pull Request #8172 · open-telemetry/opentelemetry-go (original) (raw)
added 2 commits
dashpole marked this pull request as ready for review
pellared added a commit to pellared/opentelemetry-go that referenced this pull request
Part of open-telemetry#7800
This adds Enabled checks to the generated semconv metric instruments. I also opted to regenerate the 1.40.0 conventions given this is not a behavioral change.
While implementing it, I did get the sense that this should be redundant. Callers should be checking Enabled before making these calls because they should avoid building attribute sets. But it does still make sense to have this as a fallback for cases where callers haven't done that.
Co-authored-by: Robert Pająk pellared@hotmail.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})