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

Commit 7ea593e

Browse files
committed
it's response_code not statuscode
1 parent 7224fdc commit 7ea593e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function (options) {
3737
statTags.push("path:" + req.path);
3838
}
3939

40-
if (statuscode) {
40+
if (response_code) {
4141
statTags.push("response_code:" + req.statusCode);
4242
datadog.increment(stat + '.response_code.' + req.statusCode , 1, statTags);
4343
}

0 commit comments

Comments
 (0)