-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Network Error Logging: backend part #55135
Conversation
Codecov Report
@@ Coverage Diff @@
## master #55135 +/- ##
=======================================
Coverage 80.75% 80.76%
=======================================
Files 5171 5174 +3
Lines 226919 226961 +42
Branches 38149 38160 +11
=======================================
+ Hits 183253 183309 +56
+ Misses 38111 38096 -15
- Partials 5555 5556 +1
|
No product doc for now, I'd prefer to release this internally and try this on our own org. Then we can promote it, etc.
For now, grouping will be default by message (for example,
There is no need to touch SDKs, since NEL is a feature implemented on the browser side. The idea is similar to CSP in this sense. |
The first part of the NEL ([Network Error Logging](https://developer.mozilla.org/en-US/docs/Web/HTTP/Network_Error_Logging)) implementation. * Adds a new `Nel` EventType * Adds a new `Nel` protocol with minimal validation (i.e. only specific fields are captured) * Adds a new `/api/:project_id/nel/` endpoint for NEL reports ingestion * simple content type validation * splits payload into separate envelopes (a single HTTP NEL request could contain several independent reports) * `user.ip_address` field is set to the IP address of the request (real user's IP address) * An event is enriched with browser information derived from the request's `User-Agent` header Related PRs: getsentry/sentry#55135 getsentry/sentry-kafka-schemas#177 --------- Co-authored-by: Oleksandr Kylymnychenko <oleksandr@sentry.io> Co-authored-by: Oleksandr <1931331+olksdr@users.noreply.github.com> Co-authored-by: Jan Michael Auer <mail@jauer.org>
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.
LGTM, one comment about "Unknown type"
Co-authored-by: Joris Bayer <joris.bayer@sentry.io>
Sentry backend part of the NEL (Network Error Logging) implementation.
nel
event type and interfaceTo be deployed after merging Relay part (getsentry/relay#2421) and releasing
sentry-relay
python package.