diff --git a/src/lib/tracing.ts b/src/lib/tracing.ts index 9533c904..8a9faa54 100644 --- a/src/lib/tracing.ts +++ b/src/lib/tracing.ts @@ -3,7 +3,7 @@ import { EventEmitter } from 'events'; import { OpenTelemetryConfigurator } from '@myrotvorets/opentelemetry-configurator'; import { KnexInstrumentation } from '@myrotvorets/opentelemetry-plugin-knex'; -import { TelegrafPlugin } from './ot-telegraf'; +// import { TelegrafPlugin } from './ot-telegraf'; if (+(process.env.ENABLE_TRACING || 0)) { EventEmitter.defaultMaxListeners += 5; @@ -13,7 +13,7 @@ export async function configure(): Promise { if (+(process.env.ENABLE_TRACING || 0)) { const configurator = new OpenTelemetryConfigurator({ serviceName: 'bot/myrotvorets.news', - instrumentations: [new KnexInstrumentation(), new TelegrafPlugin()], + instrumentations: [new KnexInstrumentation() /* , new TelegrafPlugin()*/], }); await configurator.start();