Skip to content

Commit eac440f

Browse files
committed
adjustments
1 parent 889e1c1 commit eac440f

File tree

1 file changed

+49
-9
lines changed

1 file changed

+49
-9
lines changed

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

+49-9
Original file line numberDiff line numberDiff line change
@@ -833,25 +833,55 @@ Page context contains information about the page that the event occurred on.
833833
Outgoing request context contains information about the outgoing request associated with the event.
834834
It should only be set for events that are associated with an outgoing request - for example, a `failed to fetch` error on a web page.
835835

836-
`url`
836+
`full.url`
837837

838-
: **Required.** The URL of the outgoing request.
838+
: **Required.** The full URL of the outgoing request, including query parameters.
839839

840840
- Example: `https://sentry.io/api/0/projects/sentry/sentry/issues/?page=1`
841841

842-
`method`
842+
`http.request.url`
843+
844+
: **Required.** The full URL of the outgoing request, excluding query parameters.
845+
846+
- Example: `https://sentry.io/api/0/projects/sentry/sentry/issues/`
847+
848+
`http.request.method`
843849

844850
: **Required.** The HTTP method of the outgoing request.
845851

846852
- Example: `GET`
847853

848-
`headers`
854+
`http.request.query`
855+
856+
: **Optional.** The query parameters of the outgoing request.
857+
858+
- Example: `?page=1`
859+
860+
`http.request.headers`
849861

850862
: **Optional.** The headers of the outgoing request.
851863

852864
- Example: `{ "Content-Type": "application/json" }`
853865

854-
`data`
866+
`http.request.data`
867+
868+
: **Optional.** The data of the outgoing request.
869+
870+
- Example: `{ "name": "John Doe", "email": "[email protected]" }`
871+
872+
`http.response.status_code`
873+
874+
: **Optional.** The status code of the outgoing request.
875+
876+
- Example: `200`
877+
878+
`http.response.headers`
879+
880+
: **Optional.** The headers of the outgoing request.
881+
882+
- Example: `{ "Content-Type": "application/json" }`
883+
884+
`http.response.data`
855885

856886
: **Optional.** The data of the outgoing request.
857887

@@ -863,12 +893,22 @@ It should only be set for events that are associated with an outgoing request -
863893
{
864894
"contexts": {
865895
"outgoing_request": {
866-
"url": "https://sentry.io/api/0/projects/sentry/sentry/issues/?page=1",
867-
"method": "GET",
868-
"headers": {
896+
"full.url": "https://sentry.io/api/0/projects/sentry/sentry/issues/?page=1",
897+
"http.request.url": "https://sentry.io/api/0/projects/sentry/sentry/issues/",
898+
"http.request.query": "?page=1",
899+
"http.request.method": "GET",
900+
"http.request.headers": {
869901
"Content-Type": "application/json"
870902
},
871-
"data": {
903+
"http.request.data": {
904+
"name": "John Doe",
905+
"email": "[email protected]"
906+
},
907+
"http.response.status_code": 200,
908+
"http.response.headers": {
909+
"Content-Type": "application/json"
910+
},
911+
"http.response.data": {
872912
"name": "John Doe",
873913
"email": "[email protected]"
874914
}

0 commit comments

Comments
 (0)