Skip to content

Commit

Permalink
179971737 Add target status code in ax record
Browse files Browse the repository at this point in the history
Add 'target_response_code' property in ax record
  • Loading branch information
gaonkar18y authored and keyurkarnik committed Mar 3, 2021
1 parent e02b824 commit f5e286b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions analytics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ module.exports.init = function(config, logger /*, stats */) {
record['target_url'] = ( req.targetSecure ? 'https' : 'http' ) +
'://' + req.targetHostname +
( req.targetPort ? ':' + req.targetPort : "") + req.targetPath;

record['target_response_code'] = req.headers['target_response_code'];

try {
cb(null, record);
Expand Down

0 comments on commit f5e286b

Please sign in to comment.