Skip to content

Commit

Permalink
Merge pull request #450 from pragmaticivan/fix/449-fix-millisecond-time
Browse files Browse the repository at this point in the history
fix: latency buckets are not matching the expected time unit in milliseconds
  • Loading branch information
pragmaticivan authored Sep 4, 2023
2 parents b599f90 + c269bac commit cfcae07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/api-metrics.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class ApiMetricsMiddleware implements NestMiddleware {
this.httpServerResponseSize.record(responseLength, attributes);

this.httpServerResponseCount.add(1, attributes);
this.httpServerDuration.record(time / 1000, attributes);
this.httpServerDuration.record(time, attributes);

const codeClass = this.getStatusCodeClass(status);

Expand Down

0 comments on commit cfcae07

Please sign in to comment.