-
Notifications
You must be signed in to change notification settings - Fork 848
Closed as not planned
Labels
bugSomething isn't workingSomething isn't workingmetricsMetrics signal relatedMetrics signal relatedpkg:OpenTelemetry.Exporter.Prometheus.AspNetCoreIssues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet packageIssues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package
Description
Bug Report
- OpenTelemetry.Exporter.Prometheus.AspNetCore 1.7.0-rc.1
- net8.0
Symptom
=> Prometheus Pull Agent
label name "error_type" is not unique: invalid sample
When aspnetcore host nginx, Request has a Application Exception, after that the request connection is closed => aspnet core add more than one error tag
Reproduce
var tagsFeature = context
.Features
.Get<IHttpMetricsTagsFeature>();
tagsFeature.Tags.Add("error.type", "System.InvalidOperationException")
tagsFeature.Tags.Add("error.type", "MysqlConnector.MySqlException")
papauorg, JonasMH, RoyLi-Pvt, florinciubotariu, hacst and 3 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmetricsMetrics signal relatedMetrics signal relatedpkg:OpenTelemetry.Exporter.Prometheus.AspNetCoreIssues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet packageIssues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package