Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Aug 25, 2021
1 parent 5969fdb commit 541a117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Bugsnag from '@bugsnag/js';
import debug from 'debug';
import { Knex } from 'knex';
import { Telegraf } from 'telegraf';
import api, { context, trace } from '@opentelemetry/api';
import { context, trace } from '@opentelemetry/api';
import { InlineKeyboardMarkup } from 'typegram';
import { addPost, checkPostExists } from '../lib/db';
import { Environment } from '../lib/environment';
Expand Down Expand Up @@ -55,7 +55,7 @@ async function sendNewPosts(bot: Telegraf<BotContext>, chat: number, data: PostD

export function lifecycle(env: Environment, bot: Telegraf<BotContext>): void {
const inner = (): void => {
const tracer = api.trace.getTracer('tracer');
const tracer = trace.getTracer('tracer');
const span = tracer.startSpan('Get posts');
void context.with(trace.setSpan(context.active(), span), async () => {
try {
Expand Down

0 comments on commit 541a117

Please sign in to comment.