From 53c31806ad2f7528082490b66085caed838eae27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20M=C3=A1rmol?= Date: Wed, 5 Oct 2022 10:00:24 -0400 Subject: [PATCH] Remove unnecessary use of scoping method --- index.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/index.ts b/index.ts index f3dbdc1..8f27f8a 100644 --- a/index.ts +++ b/index.ts @@ -248,16 +248,6 @@ export default fastifyPlugin(async function FastifySentry(fastify, options) { req[setTx](tx) - - - const scope: Scope = await new Promise((res, rej) => { - Sentry.configureScope(scope => { - res(scope) - }) - }) - - - scope.setSpan(tx) }) for(const currentHookName of opts.performance.hooks) {