Skip to content

Commit

Permalink
Temporarily disable ot-telegraf
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed May 12, 2021
1 parent 4e02daa commit c94dec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/tracing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -13,7 +13,7 @@ export async function configure(): Promise<void> {
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();
Expand Down

0 comments on commit c94dec7

Please sign in to comment.