Skip to content

Commit

Permalink
capture target_sent_start
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandan Sridhar committed Oct 4, 2017
1 parent cb15783 commit 5c46140
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/plugins-middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ function getTargetRequest(sourceRequest, sourceResponse, plugins, startTime, cor
const config = configService.get();

const proxy = sourceResponse.proxy;
//capture the timestamp just before sending the data to the target server
sourceRequest.headers['target_sent_start_timestamp'] = Date.now();

// try to pass through most of the original request headers unmodified
const target_headers = _.clone(sourceRequest.headers);
Expand Down

0 comments on commit 5c46140

Please sign in to comment.