You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Microsoft.Gen.Metrics doesn't allow int-typed tag (error METGEN012) #6720
In the Microsoft.Extensions.Telemetry.Abstractions package, the metrics source generator Microsoft.Gen.Metrics allows string and enum types for tag values, and emits error METGEN012 otherwise:
OpenTelemetry semantic conventions define int-typed attributes for some metrics, in particular the server.port attribute in messaging.client.operation.duration and in RPC metrics. I think Microsoft.Gen.Metrics should allow int, too.
Activity
evgenyfedorov2 commentedon Aug 14, 2025
Related to #6513