Skip to content

Commit 27c7523

Browse files
committed
update fields, remove user_agent
1 parent 5169e7f commit 27c7523

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

develop-docs/sdk/data-model/event-payloads/contexts.mdx

+22-8
Original file line numberDiff line numberDiff line change
@@ -782,17 +782,29 @@ envelope endpoint.
782782

783783
Page context contains information about the page that the event occurred on.
784784

785-
`url`
785+
`full.url`
786786

787-
: **Required.** The URL of the page that the event occurred on.
787+
: **Required.** The URL of the page that the event occurred on, including query parameters.
788788

789-
- Example: `https://sentry.io/issues?page=1`
789+
- Example: `https://sentry.io/issues?page=1#123`
790790

791-
`user_agent`
791+
`http.url`
792792

793-
: _Optional_. The user agent of the page that the event occurred on.
793+
: **Required.** The URL of the page that the event occurred on, excluding query parameters.
794794

795-
- Example: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36`
795+
- Example: `https://sentry.io/issues`
796+
797+
`http.query`
798+
799+
: **Optional.** The query parameters of the page that the event occurred on.
800+
801+
- Example: `?page=1`
802+
803+
`http.fragment`
804+
805+
: **Optional.** The fragment of the page that the event occurred on.
806+
807+
- Example: `#123`
796808

797809
`referer`
798810

@@ -806,8 +818,10 @@ Page context contains information about the page that the event occurred on.
806818
{
807819
"contexts": {
808820
"page": {
809-
"url": "https://sentry.io/issues?page=1",
810-
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36",
821+
"full.url": "https://sentry.io/issues?page=1#123",
822+
"http.url": "https://sentry.io/issues",
823+
"http.query": "?page=1",
824+
"http.fragment": "#123",
811825
"referer": "https://sentry.io/"
812826
}
813827
}

0 commit comments

Comments
 (0)