Open
Description
Description
OTelHttp client metrics have no way to record the error because it exists early when handling errors.
Environment
- OS: macOS
- Architecture: arm64
- Go Version: 1.24
otelhttp
version: v0.60.0
Steps To Reproduce
- Send a http request using otelhttp transport which would timeout
- Observe that
http.client.request.duration
metric is not recorded.
Expected behavior
http.client.request.duration
should still be recorded when an error happens during the round trip like timeouts.http.client.request.duration
should have theerror.type
attribute set when a net.http or other type of error happens during the transport round trip.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Low priority