RuntimeTools / appmetrics

Node Application Metrics provides a foundational infrastructure for collecting resource and performance monitoring data for Node.js-based applications.
https://developer.ibm.com/open/node-application-metrics/
Apache License 2.0
977 stars 126 forks source link

Move http(s) timing contexts into the request level #592

Closed mattcolegate closed 5 years ago

mattcolegate commented 5 years ago

This fixes issue #590 by moving the context object (which stores the event timings for start and stop) into the request level of the probes rather than the function level of aspect.js. Moving it to this scope prevents other http(s) events from overwriting the timings and causing groups of events to have the same start time and duration. Passes npm test.