-
Notifications
You must be signed in to change notification settings - Fork 307
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
chore: add gw failure stats #3809
Conversation
6ae3647
to
2fcc49f
Compare
@@ -36,10 +36,26 @@ func (gw *Handle) writeKeyAuth(delegate http.HandlerFunc) http.HandlerFunc { | |||
} | |||
arctx := gw.authRequestContextForWriteKey(writeKey) | |||
if arctx == nil { | |||
stat := gwstats.SourceStat{ |
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 we handle this stat centrally, eg. similar to what gw#handleHttpError does?
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.
Addressed this... let me know if this looks good
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #3809 +/- ##
==========================================
+ Coverage 69.06% 69.19% +0.12%
==========================================
Files 349 349
Lines 51899 51947 +48
==========================================
+ Hits 35845 35944 +99
+ Misses 13748 13700 -48
+ Partials 2306 2303 -3
☔ View full report in Codecov by Sentry. |
2fcc49f
to
bfec796
Compare
bfec796
to
3d804b9
Compare
3d804b9
to
6b08d64
Compare
6b08d64
to
9b56bc8
Compare
…r-server into chore.addGWFailureStats
Description
Add stats for failures at GW
Linear Ticket
https://linear.app/rudderstack/issue/PIPE-203/release-1130-fixes
Security