Skip to content

Commit

Permalink
Merge pull request #3 from serdnam/remove-unnecessary-scope
Browse files Browse the repository at this point in the history
Remove unnecessary use of scoping method
  • Loading branch information
serdnam authored Oct 5, 2022
2 parents 064fb27 + 53c3180 commit e36f795
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e36f795

Please sign in to comment.