Skip to content

Commit

Permalink
Merge pull request #1176 from multiversx/SERVICES-1828-monitoring-mod…
Browse files Browse the repository at this point in the history
…ule-integration

[SERVICES-1828] nestjs-metrics integration
  • Loading branch information
claudiulataretu authored Sep 11, 2023
2 parents 408fb92 + 2e42ae2 commit 54ec4f8
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 174 deletions.
81 changes: 81 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@multiversx/sdk-data-api-client": "^0.5.8",
"@multiversx/sdk-exchange": "^0.2.17",
"@multiversx/sdk-native-auth-server": "1.0.7",
"@multiversx/sdk-nestjs-monitoring": "^2.0.0-beta.2",
"@multiversx/sdk-network-providers": "^2.0.0",
"@nestjs/apollo": "^12.0.7",
"@nestjs/axios": "^3.0.0",
Expand Down
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
Loading

0 comments on commit 54ec4f8

Please sign in to comment.