[@azure/monitor-opentelemetry] - Requests with status code 304 are shown as failed in application insights #29398
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor - Exporter
Monitor OpenTelemetry Exporter
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Describe the bug
Currently some requests are treated and shown as errors, e.g.
304
which is a redirect / cache-hit. The majority of the errors that we get are304
requests. Moreover, we don't get any information about these requests in application insights (in the first screenshot below you can see how the the dashboard looks like when the304
is clicked to reveal more information about the errors). Also, these requests are not shown as errors in transaction search, and when they are filtered (ex. by response code), they do not show in the failed requests graph anymore.To Reproduce
Our setup is similar to this example:
Expected behavior
The requests with status code
304
are not shown as errors in application insights.Screenshots
Additional context
We played around a bit and tried to set custom attributes to the http requests using a SpanEnrichingProcessor but it seems that no custom attributes could be added to these failed requests.
The text was updated successfully, but these errors were encountered: