-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add NEL-related attributes #68
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
Conversation
The changes are reflecting the discussions from [this document](https://www.notion.so/sentry/Browser-Reports-Attribute-21e8b10e4b5d8045a7fdc936c814ed70) and follow-up to [this Relay PR](getsentry/relay#4874).
@@ -5119,7 +5119,7 @@ export type SENTRY_OP_TYPE = string; | |||
// Path: model/attributes/sentry/sentry__origin.json | |||
|
|||
/** | |||
* The origin of a span. `sentry.origin` | |||
* The origin of the instrumentation (e.g. span, log, etc.). `sentry.origin` |
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.
Since it can now be used outside of the context of a span.
@@ -0,0 +1,10 @@ | |||
{ |
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.
For this PR, you can experiment with the fields in here.
You can also refer to this w3c document.
model/attributes/nel/nel__phase.json
Outdated
"type": "string", | ||
"pii": { "key": "false" }, | ||
"is_in_otel": false, | ||
"example": "application" |
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.
e.g. dns, application , connection
@@ -0,0 +1,8 @@ | |||
{ | |||
"key": "nel.referrer", |
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.
Intentional double rr
😄
"type": "number", | ||
"pii": { "key": "false" }, | ||
"is_in_otel": false, | ||
"example": 100 |
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.
For numeric examples, I assume I can put it without quotes.
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.
yup, this is valid. The tests should catch this.
Make sure you run |
The changes are reflecting the discussions from this document and follow-up to this Relay PR.