@contrast/metrics
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -42,2 +42,5 @@ /* | ||
post({ result: server }) { | ||
server.on('listening', () => { | ||
logger.debug('Server listening after %dms', (process.hrtime.bigint() - core.startTime) / 1000000n); | ||
}); | ||
// get the configured ServerResponse | ||
@@ -69,3 +72,3 @@ let ServerResponse = server[kServerResponse]; | ||
return; | ||
metrics.duration_ns = (process.hrtime.bigint() - metrics.start); | ||
metrics.duration_ns = process.hrtime.bigint() - metrics.start; | ||
logger.debug({ metrics }, '%s %s internal response latency: %dms', metrics.method, metrics.url, metrics.duration_ns / 1000000n); | ||
@@ -72,0 +75,0 @@ clearTimeout(metrics.timeout); |
{ | ||
"name": "@contrast/metrics", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Records and logs route latency", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8779
100
5