-
Notifications
You must be signed in to change notification settings - Fork 215
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
Add tracing support for gin #600
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #600 +/- ##
==========================================
- Coverage 80.03% 78.99% -1.04%
==========================================
Files 38 38
Lines 3881 3932 +51
==========================================
Hits 3106 3106
- Misses 669 720 +51
Partials 106 106
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ 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.
Thanks for the contribution, added some comments.
gin/sentrygin.go
Outdated
ctx.Writer.Header().Set(traceHeader, transaction.ToSentryTrace()) | ||
ctx.Writer.Header().Set(baggageHeader, transaction.ToBaggage()) |
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.
Can you explain why we need to do this?
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.
I’m not sure whether it’s useful to return trace info in HTTP header, like Sentry’ Python SDK works with Flask&FastAPI.
Is there any spec for this use case?
Will also need some tests. |
Closing in favour of #644 |
Fix #593