open-telemetry/opentelemetry-dotnet
Improve instrument name validation and log messages
Offen
#2.532 geöffnet am 27.10.2021
enhancementhelp wantedkeep-openmetrics
Repository-Metriken
- Stars
- (3.725 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 3T 17h) (112 gemergte PRs in 30 T)
Beschreibung
In PR #2470 we added validation for instrument and view names according to the spec. This issue is to track a small follow up that came up from PR comments :
- Use guard helpers: https://github.com/open-telemetry/opentelemetry-dotnet/pull/2470#discussion_r737044427
- Improve the message, specifying what was the original invalid name (instrument or view) https://github.com/open-telemetry/opentelemetry-dotnet/pull/2470#discussion_r737045347