-
Notifications
You must be signed in to change notification settings - Fork 213
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
goroutine leak in HTTPTransport #731
Comments
Could you explain your use case in a bit more detail? |
Hi @cleptric! We don't explicitly instantiate
I noticed that during the shutdown process, our service has a leaked goroutine. It is not critical for my case at all. I agree that most of the use cases for sentry fall into category "live as long as the process does". |
I would recommend using the |
I've encountered this too when working on Profiling in the past - it's causing issues in tests because we have outstanding HTTP transport workers that stay running indefinitely. Related: #111 |
I guess this can be solved in #111 which is still open and on the backlog |
Summary
You iterate over a channel in a separate goroutine. This channel is never closed which leads to a goroutine leak.
Steps To Reproduce
Install
"go.uber.org/goleak"
and add the following code totransport_test.go
fileoutput:
Expected Behavior
As a user, I want to be able to tear down all the sentry-allocated resources when it's no longer needed.
SDK
sentry-go
version: v0.25.0The text was updated successfully, but these errors were encountered: