@@ -819,25 +819,55 @@ Page context contains information about the page that the event occurred on.
819
819
Outgoing request context contains information about the outgoing request associated with the event.
820
820
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.
821
821
822
- ` url `
822
+ ` full. url`
823
823
824
- : ** Required.** The URL of the outgoing request.
824
+ : ** Required.** The full URL of the outgoing request, including query parameters .
825
825
826
826
- Example: ` https://sentry.io/api/0/projects/sentry/sentry/issues/?page=1 `
827
827
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 `
829
835
830
836
: ** Required.** The HTTP method of the outgoing request.
831
837
832
838
- Example: ` GET `
833
839
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 `
835
847
836
848
: ** Optional.** The headers of the outgoing request.
837
849
838
850
- Example: ` { "Content-Type": "application/json" } `
839
851
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 `
841
871
842
872
: ** Optional.** The data of the outgoing request.
843
873
@@ -849,12 +879,22 @@ It should only be set for events that are associated with an outgoing request -
849
879
{
850
880
"contexts" : {
851
881
"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" : {
855
887
"Content-Type" : " application/json"
856
888
},
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" : {
858
898
"name" : " John Doe" ,
859
899
860
900
}
0 commit comments