Skip to content

Add NEL-related attributes - #68

Merged
armenzg merged 7 commits into
mainfrom
browser/reports/nel/armenzg
Jul 8, 2025
Merged

Add NEL-related attributes#68
armenzg merged 7 commits into
mainfrom
browser/reports/nel/armenzg

Conversation

@armenzg

@armenzg armenzg commented Jul 7, 2025

Copy link
Copy Markdown
Member

The changes are reflecting the discussions from this document and follow-up to this Relay PR.

@armenzg armenzg self-assigned this Jul 7, 2025
@armenzg
armenzg requested a review from Dav1dde July 7, 2025 19:30

/**
* The origin of a span. `sentry.origin`
* The origin of the instrumentation (e.g. span, log, etc.). `sentry.origin`

Copy link
Copy Markdown
Member Author

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 @@
{

Copy link
Copy Markdown
Member Author

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.

Comment thread model/attributes/browser/browser__report__type.json Outdated
Comment thread model/attributes/nel/nel__elapsed_time.json Outdated
Comment thread model/attributes/nel/nel__phase.json Outdated
"type": "string",
"pii": { "key": "false" },
"is_in_otel": false,
"example": "application"

Copy link
Copy Markdown
Member Author

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

Comment thread model/attributes/nel/nel__referrer.json Outdated
@@ -0,0 +1,8 @@
{
"key": "nel.referrer",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentional double rr 😄

Comment thread model/attributes/nel/nel__sampling_function.json Outdated
"type": "number",
"pii": { "key": "false" },
"is_in_otel": false,
"example": 100

Copy link
Copy Markdown
Member Author

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.

Copy link
Copy Markdown
Contributor

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.

@armenzg
armenzg marked this pull request as ready for review July 7, 2025 19:35
@AbhiPrasad

Copy link
Copy Markdown
Contributor

Make sure you run yarn run generate to generate the docs (right now they are just markdown that lives inside the repo)!

@armenzg
armenzg changed the base branch from main to generate/armenzg July 7, 2025 19:52
Base automatically changed from generate/armenzg to main July 7, 2025 20:02
@armenzg
armenzg enabled auto-merge (squash) July 8, 2025 12:55
@armenzg
armenzg merged commit 228487f into main Jul 8, 2025
5 checks passed
@armenzg
armenzg deleted the browser/reports/nel/armenzg branch July 8, 2025 13:00
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