Skip to content

Commit

Permalink
SERVICES-1828: use CpuProfiler from nestjs-monitoring
Browse files Browse the repository at this point in the history
Signed-off-by: Claudiu Lataretu <[email protected]>
  • Loading branch information
claudiulataretu committed Sep 8, 2023
1 parent 2c95553 commit 2e42ae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 107 deletions.
105 changes: 0 additions & 105 deletions src/utils/cpu.profiler.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/utils/logging.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { GqlContextType, GqlExecutionContext } from '@nestjs/graphql';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
import { CpuProfiler } from './cpu.profiler';
import { CpuProfiler } from '@multiversx/sdk-nestjs-monitoring';
import { MetricsCollector } from './metrics.collector';
import { PerformanceProfiler } from './performance.profiler';

Expand All @@ -29,7 +29,7 @@ export class LoggingInterceptor implements NestInterceptor {

const profiler = new PerformanceProfiler();
const cpuProfiler = new CpuProfiler();

return next.handle().pipe(
tap(() => {
profiler.stop();
Expand Down

0 comments on commit 2e42ae2

Please sign in to comment.