@@ -167,8 +167,10 @@ describe('capture events', function () {
167167      method : 'GET' , 
168168      status_code : 400 , 
169169      request_headers : {  'Content-Type' : 'application/json'  } , 
170+       request : {  params : 'foo'  } , 
170171      response : { 
171172        headers : {  'Content-Type' : 'application/json'  } , 
173+         body : {  data : 'foo'  } , 
172174      } , 
173175      start_time_ms : timestamp , 
174176      end_time_ms : 12345678 , 
@@ -188,6 +190,8 @@ describe('capture events', function () {
188190      url : metadata . url , 
189191      'request.headers' : JSON . stringify ( metadata . request_headers ) , 
190192      'response.headers' : JSON . stringify ( metadata . response . headers ) , 
193+       'request.body' : JSON . stringify ( metadata . request ) , 
194+       'response.body' : JSON . stringify ( metadata . response . body ) , 
191195      'response.timeUnixNano' : ( metadata . end_time_ms  *  1e6 ) . toString ( ) , 
192196    } ) ; 
193197
@@ -202,6 +206,8 @@ describe('capture events', function () {
202206      url : metadata . url , 
203207      'request.headers' : JSON . stringify ( metadata . request_headers ) , 
204208      'response.headers' : JSON . stringify ( metadata . response . headers ) , 
209+       'request.body' : JSON . stringify ( metadata . request ) , 
210+       'response.body' : JSON . stringify ( metadata . response . body ) , 
205211      'response.timeUnixNano' : ( metadata . end_time_ms  *  1e6 ) . toString ( ) , 
206212    } ) ; 
207213    done ( ) ; 
0 commit comments