-
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
Implement hijacker interface for Negroni integration #871
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #871 +/- ##
==========================================
- Coverage 82.83% 82.81% -0.03%
==========================================
Files 51 51
Lines 4597 4580 -17
==========================================
- Hits 3808 3793 -15
+ Misses 636 633 -3
- Partials 153 154 +1 ☔ View full report in Codecov by Sentry. |
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.
There are some breaking changes in here we need to call out on the changelog. Besides this, LGTM!
Are you referring to moving the WrapResponseWriter from That wasn't supposed to be exposed externally, so doubt anyone used it. To prevent a breaking change, we can keep it at sentryhttp as well (and just call the one at sentry internally)? |
It’s ok, we just need to call it out 🙂 |
@cleptric Perhaps we should move the Hijacker interface to |
@ribice I'd say you should move it to The one on |
Hi there, I've reviewed the code and I've found the issue: sentry-go/internal/httputils/wrap_writer.go Lines 35 to 57 in a6acd05
The w is of type We have had to rollback our releases today as this was failing. As mentioned before, negroni v1 uses a limited writer. This is solved in negroni v3, which is easy to migrate to, but it would be nice if go-sentry was upgraded to v3 too, as v1 was released in 2018. Having our project requiring both versions is a nightmare. From my point of view, if Please let me know your thoughts Thank you! |
@ribice can you take a look please? |
Yes I can. Before I change the interface to support v1, I'm curious if we can update to v3? Is that an option? |
Fine with me. |
Thank you for looking into this guys :) |
Upgraded negroni to latest version in #885. This worked just fine: https://gist.github.com/ribice/95934b3c209b9692efc4b50b91d5dd4a |
@kydemy-fran Can you confirm that it works as expected with 0.29.1? |
Resolves #837 (comment)