@@ -833,25 +833,55 @@ Page context contains information about the page that the event occurred on.
833
833
Outgoing request context contains information about the outgoing request associated with the event.
834
834
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.
835
835
836
- ` url `
836
+ ` full. url`
837
837
838
- : ** Required.** The URL of the outgoing request.
838
+ : ** Required.** The full URL of the outgoing request, including query parameters .
839
839
840
840
- Example: ` https://sentry.io/api/0/projects/sentry/sentry/issues/?page=1 `
841
841
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 `
843
849
844
850
: ** Required.** The HTTP method of the outgoing request.
845
851
846
852
- Example: ` GET `
847
853
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 `
849
861
850
862
: ** Optional.** The headers of the outgoing request.
851
863
852
864
- Example: ` { "Content-Type": "application/json" } `
853
865
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 `
855
885
856
886
: ** Optional.** The data of the outgoing request.
857
887
@@ -863,12 +893,22 @@ It should only be set for events that are associated with an outgoing request -
863
893
{
864
894
"contexts" : {
865
895
"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" : {
869
901
"Content-Type" : " application/json"
870
902
},
871
- "data" : {
903
+ "http.request.data" : {
904
+ "name" : " John Doe" ,
905
+
906
+ },
907
+ "http.response.status_code" : 200 ,
908
+ "http.response.headers" : {
909
+ "Content-Type" : " application/json"
910
+ },
911
+ "http.response.data" : {
872
912
"name" : " John Doe" ,
873
913
874
914
}
0 commit comments