From ae2bf9564ef315fa3919fc1c6c4ee7ff36afbdb0 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 22 Mar 2022 12:46:59 -0400 Subject: [PATCH] refactor trans --- src/class/Client.ts | 3 --- src/events/CommandHandler.ts | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/class/Client.ts b/src/class/Client.ts index 53c95ad..2970a55 100644 --- a/src/class/Client.ts +++ b/src/class/Client.ts @@ -72,9 +72,6 @@ export default class Client extends eris.Client { Sentry.init({ dsn: 'https://323f6626a7104be7859088750b91abe1@sentry.libraryofcode.org/2', tracesSampleRate: 0.25, - integrations: [ - new Sentry.Integrations.Http({ tracing: true }), - ], }); Tracing.addExtensionMethods(); } diff --git a/src/events/CommandHandler.ts b/src/events/CommandHandler.ts index 3760624..9c5ad9b 100644 --- a/src/events/CommandHandler.ts +++ b/src/events/CommandHandler.ts @@ -1,7 +1,6 @@ /* eslint-disable no-useless-return */ import { Message, TextChannel, NewsChannel } from 'eris'; import * as Sentry from '@sentry/node'; -import * as Tracing from '@sentry/tracing'; import { Client, Event } from '../class'; export default class CommandHandler extends Event { @@ -14,9 +13,6 @@ export default class CommandHandler extends Event { public async run(message: Message) { const transaction = Sentry.startTransaction({ name: 'command-handler' }); - Sentry.configureScope((scope) => { - scope.setSpan(transaction); - }); try { this.client.db.mongo.Stat.updateOne({ name: 'messages' }, { $inc: { value: 1 } }).exec(); if (message.author.bot) return;