File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 99import { APP } from '../../constants' ;
1010import { TelemetryClient } from '@vtex/diagnostics-nodejs/dist/telemetry' ;
1111import { KoaInstrumentation } from '@opentelemetry/instrumentation-koa' ;
12+ import { HostMetricsInstrumentation } from '../metrics/instruments/hostMetrics' ;
1213
1314const CLIENT_NAME = APP . NAME || 'node-vtex-api' ;
1415const APPLICATION_ID = APP . ID || 'vtex-io-app' ;
@@ -79,6 +80,10 @@ class TelemetryClientSingleton {
7980 const instrumentations = [
8081 ...Instrumentation . CommonInstrumentations . minimal ( ) ,
8182 new KoaInstrumentation ( ) ,
83+ new HostMetricsInstrumentation ( {
84+ name : 'host-metrics-instrumentation' ,
85+ meterProvider : metricsClient . provider ( ) ,
86+ } ) ,
8287 ] ;
8388
8489 telemetryClient . registerInstrumentations ( instrumentations ) ;
You can’t perform that action at this time.
0 commit comments