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' ;
@@ -81,6 +82,10 @@ class TelemetryClientSingleton {
8182 const instrumentations = [
8283 ...Instrumentation . CommonInstrumentations . minimal ( ) ,
8384 new KoaInstrumentation ( ) ,
85+ new HostMetricsInstrumentation ( {
86+ name : 'host-metrics-instrumentation' ,
87+ meterProvider : metricsClient . provider ( ) ,
88+ } ) ,
8489 ] ;
8590
8691 telemetryClient . registerInstrumentations ( instrumentations ) ;
You can’t perform that action at this time.
0 commit comments