Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit 1cb9a2c

Browse files
committed
add response_code as seperate metrics set
1 parent 9b39b7a commit 1cb9a2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module.exports = function (options) {
4040
if (response_code) {
4141
statTags.push("response_code:" + res.statusCode);
4242
datadog.increment(stat + '.response_code.' + res.statusCode , 1, statTags);
43+
datadog.set(stat + '.response_code' , res.statusCode , 1, statTags);
4344
}
4445

4546
datadog.histogram(stat + '.response_time', (new Date() - req._startTime), 1, statTags);

0 commit comments

Comments
 (0)