-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Suppress aborthandler #21479
base: main
Are you sure you want to change the base?
Suppress aborthandler #21479
Conversation
…src (goharbor#21162) Bumps [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go) from 1.31.0 to 1.32.0. - [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md) - [Commits](open-telemetry/opentelemetry-go@v1.31.0...v1.32.0) --- updated-dependencies: - dependency-name: go.opentelemetry.io/otel dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: miner <[email protected]>
Signed-off-by: ianseyer <[email protected]>
Thank you for your contribution, this is a quite common issue, we have also seen ourself. |
case r == nil: | ||
return | ||
|
||
case ok && errors.Is(err, http.ErrAbortHandler): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to print a log with this error, just in case there are very frequent network connection issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So there will, at least in my testing, still be http: proxy error: context canceled
emitted if the connection is interrupted.
It is also worth mentioning that in net/http/server
, this type of error is completely ignored: https://github.com/golang/go/blob/master/src/net/http/server.go#L1944
@reasonerjt what is the follow-up required? |
Fixes #18087, #15751, #10813, #12011, #16556, #20148
As per golang/go#28239, it is the expectation that middleware using net/http is responsible for handling http.AbortHandler panics that are automatically recovered.
In the current situation, any network connectivity blip, despite recovering successfully, results in a panic being written to the logs.
I have tested this build in our staging environment, and the panic message is indeed suppressed. We do see a proxy connection interrupted log message, which is to be expected (we have a reliable source of network connectivity blips).
Please indicate you've done the following: