We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42df7d7 commit baa12c8Copy full SHA for baa12c8
lib/instrumentations/core/http/server.js
@@ -159,7 +159,7 @@ function httpServer (listener, agent) {
159
debug('#httpServer', '[Warning] failed to create SS, cannot intrument headers')
160
}
161
agent.rpmMetrics.addResponseTime(ssTime - srTime)
162
- agent.rpmMetrics.addStatusCode(response.statusCode)
+ agent.rpmMetrics.addStatusCode(statusCode)
163
} else {
164
debug('#httpServer', '[Warning] writeHead called multiple times, wrongly reported status codes may occur')
165
0 commit comments