Skip to content

Commit

Permalink
log ms
Browse files Browse the repository at this point in the history
  • Loading branch information
cfaur09 committed Jan 1, 2025
1 parent 7333dd8 commit d205d3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/interceptors/response-time.cpu.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class ResponseTimeCpuInterceptor implements NestInterceptor {
const request = context.switchToHttp().getRequest();
const endpoint = request.url;

console.log(`${endpoint} - ${duration}ms - ${cpuUsage}ms`);
this.metricsService.setExternalCall('response_time', duration);
this.metricsService.setExternalCall('cpu_usage', cpuUsage);

Expand Down

0 comments on commit d205d3e

Please sign in to comment.