@@ -819,25 +819,55 @@ Page context contains information about the page that the event occurred on.
819819Outgoing request context contains information about the outgoing request associated with the event.
820820It should only be set for events that are associated with an outgoing request - for example, a ` failed to fetch ` error on a web page.
821821
822- ` url `
822+ ` full. url`
823823
824- : ** Required.** The URL of the outgoing request.
824+ : ** Required.** The full URL of the outgoing request, including query parameters .
825825
826826- Example: ` https://sentry.io/api/0/projects/sentry/sentry/issues/?page=1 `
827827
828- ` method `
828+ ` http.request.url `
829+
830+ : ** Required.** The full URL of the outgoing request, excluding query parameters.
831+
832+ - Example: ` https://sentry.io/api/0/projects/sentry/sentry/issues/ `
833+
834+ ` http.request.method `
829835
830836: ** Required.** The HTTP method of the outgoing request.
831837
832838- Example: ` GET `
833839
834- ` headers `
840+ ` http.request.query `
841+
842+ : ** Optional.** The query parameters of the outgoing request.
843+
844+ - Example: ` ?page=1 `
845+
846+ ` http.request.headers `
835847
836848: ** Optional.** The headers of the outgoing request.
837849
838850- Example: ` { "Content-Type": "application/json" } `
839851
840- ` data `
852+ ` http.request.data `
853+
854+ : ** Optional.** The data of the outgoing request.
855+
856+ - Example:
` { "name": "John Doe", "email": "[email protected] " } ` 857+
858+ ` http.response.status_code `
859+
860+ : ** Optional.** The status code of the outgoing request.
861+
862+ - Example: ` 200 `
863+
864+ ` http.response.headers `
865+
866+ : ** Optional.** The headers of the outgoing request.
867+
868+ - Example: ` { "Content-Type": "application/json" } `
869+
870+ ` http.response.data `
841871
842872: ** Optional.** The data of the outgoing request.
843873
@@ -849,12 +879,22 @@ It should only be set for events that are associated with an outgoing request -
849879{
850880 "contexts" : {
851881 "outgoing_request" : {
852- "url" : " https://sentry.io/api/0/projects/sentry/sentry/issues/?page=1" ,
853- "method" : " GET" ,
854- "headers" : {
882+ "full.url" : " https://sentry.io/api/0/projects/sentry/sentry/issues/?page=1" ,
883+ "http.request.url" : " https://sentry.io/api/0/projects/sentry/sentry/issues/" ,
884+ "http.request.query" : " ?page=1" ,
885+ "http.request.method" : " GET" ,
886+ "http.request.headers" : {
855887 "Content-Type" : " application/json"
856888 },
857- "data" : {
889+ "http.request.data" : {
890+ "name" : " John Doe" ,
891+ 892+ },
893+ "http.response.status_code" : 200 ,
894+ "http.response.headers" : {
895+ "Content-Type" : " application/json"
896+ },
897+ "http.response.data" : {
858898 "name" : " John Doe" ,
859899860900 }
0 commit comments