Skip to content

Commit

Permalink
fix(instrumentations): report statusCode passed to writeHead
Browse files Browse the repository at this point in the history
  • Loading branch information
dszakallas committed Jan 23, 2017
1 parent 7cdc9d1 commit b8dcb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/instrumentations/core/http/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function httpServer (listener, agent) {
alreadyEnded = true
writeHeadAlreadyCalled = true
var ssTime = microtime.now()
var statusCode = response.statusCode || arguments[0]
var statusCode = arguments[0] || response.statusCode
var tracerBriefcase = agent.storage.get('tracer.briefcase')
if (!tracerBriefcase) {
debug('#httpServer', '[Warning] lost tracer.briefcase context, falling back to SR briefcase')
Expand Down

0 comments on commit b8dcb4e

Please sign in to comment.