-
Notifications
You must be signed in to change notification settings - Fork 20
adapter: work-around missing res.response #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -377,7 +377,7 @@ function createMessageListener() { | |
| function createProbeListener(probeName) { | ||
| monitor.on(probeName, function(res) { | ||
| var duration = 0; | ||
| if (probeName === 'express') { | ||
| if (probeName === 'express' && res.response) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the intention of the code is that there is only a
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so the |
||
| duration = res.response.duration; | ||
| } else { | ||
| duration = res.duration; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the argument name is wrong here, this is the
dataobject from theexpresseven that had docs removed in https://github.com/RuntimeTools/appmetrics/pull/260/files, right?resmakes it seem like it is a https://nodejs.org/docs/latest/api/http.html#http_class_http_serverresponseBut the express probe got removed, and replace with strong-express-metrics... and now we are hitting this, which means that there is still an
expressevent, what is the structure of this event?