Skip to content
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

Allow new nel event type in events topics #177

Merged
merged 1 commit into from
Sep 27, 2023
Merged

Allow new nel event type in events topics #177

merged 1 commit into from
Sep 27, 2023

Conversation

oioki
Copy link
Member

@oioki oioki commented Sep 26, 2023

Prerequisite for getsentry/sentry#55135 (Network Error Logging).
No extra validation yet (I don't see any extra validation for csp either). This should unblock local testing etc.

@oioki oioki requested a review from a team as a code owner September 26, 2023 16:48
@github-actions
Copy link

versions in use:

The following repositories use one of the schemas you are editing. It is recommended to roll out schema changes in small PRs, meaning that if those used versions lag behind the latest, it is probably best to update those services before rolling out your change.

  • getsentry/snuba: pip:sentry-kafka-schemas==0.1.27 (upgrade)
  • getsentry/sentry: pip:sentry-kafka-schemas==0.1.26 (upgrade)

latest version: 0.1.28

There were changes to the JSON schema file, but we couldn't categorize any of
them. Therefore we don't know whether this change is safe to make.

This might be a gap in linting. Want to take a look at
https://github.com/getsentry/json-schema-diff/ and figure it out?

@oioki oioki merged commit c2f1196 into main Sep 27, 2023
14 of 15 checks passed
@oioki oioki deleted the feat/nel-eventtype branch September 27, 2023 08:54
oioki added a commit to getsentry/relay that referenced this pull request Nov 6, 2023
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants