Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Superfluous response.WriteHeader call in otelhttp #801

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

felipeweb
Copy link

@felipeweb felipeweb commented Oct 18, 2024

This PR updates the OpenTelemetry packages to address the http: superfluous response.WriteHeader call error originating from go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request.(*RespWriterWrapper).writeHeader.

This issue is resolved in the updated OpenTelemetry version, as confirmed by the corresponding pull request in the OpenTelemetry repository: open-telemetry/opentelemetry-go-contrib#6055.

This update ensures accurate HTTP response handling and eliminates the error message.

@rgrandl rgrandl self-assigned this Nov 5, 2024
@rgrandl
Copy link
Contributor

rgrandl commented Nov 5, 2024

@felipeweb, thanks for your PR. However, your go.mod changes are quite intrusive.

Do you have an example to reproduce this issue when using weaver?

Thanks,

  • Robert

@rgrandl rgrandl assigned felipeweb and unassigned rgrandl Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants