Open FelipeLema opened 1 year ago
Note that we would need to change the interception of the status code in the otel send function to always extract the status code and make it available, so that we can set it in the finally blcok were additional attributes are set.
using
opentelemetry.instrumentation.asgi.OpenTelemetryMiddleware
with the following packages installedopentelemetry-api = "==1.18.0"
opentelemetry-exporter-otlp-proto-grpc = "==1.18.0"
opentelemetry-instrumentation-asgi = "==0.39b0"
opentelemetry-sdk = "==1.18.0"
opentelemetry-semantic-conventions = "==0.39b0"
Steps to reproduce
http.server.duration
What is the expected behavior?
Seeing status code as attribute for
http.server.duration
regardless of whether we're recording spans or notWhat is the actual behavior?
Not seeing status code as attribute for
http.server.duration
when not recording spansAdditional context