open-telemetry / opentelemetry-collector

OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
4.3k stars 1.42k forks source link

`http: superfluous response.WriteHeader call` (v0.109.0) #11239

Open arielvalentin opened 5 hours ago

arielvalentin commented 5 hours ago

v0.109.0 generates an unstructured warning when handling traces:

otel-collector-1  | 2024/09/21 14:21:15 http: superfluous response.WriteHeader call from go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request.(*RespWriterWrapper).writeHeader (resp_writer_wrapper.go:78)

Is there a way to disable these warnings?

TylerHelmuth commented 4 hours ago

It is an error in instrumentation that has been fixed: https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v1.30.0

arielvalentin commented 2 hours ago

Ok. Will that change be included in v0.110.0?