Skip to content

Commit

Permalink
Merge pull request #11 from serdnam/release-prep
Browse files Browse the repository at this point in the history
lint, update devDependencies
  • Loading branch information
serdnam authored Oct 15, 2023
2 parents 1f2d926 + e0fbf9f commit 9eca92e
Show file tree
Hide file tree
Showing 3 changed files with 8,582 additions and 8,461 deletions.
4 changes: 2 additions & 2 deletions lib/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ const FastifySentry = fastifyPlugin(async function FastifySentry(fastify, option
})

fastify.addHook('onRequest', function (req, rep, done) {
const method = req.routeOptions?.method ?? req.routerMethod ?? req.method;
const path = req.routeOptions?.url ?? req.routerPath ?? req.url;
const method = req.routeOptions?.method ?? req.routerMethod ?? req.method
const path = req.routeOptions?.url ?? req.routerPath ?? req.url
const tx = Sentry.startTransaction({
op: `${method} ${path}`,
name: path,
Expand Down
Loading

0 comments on commit 9eca92e

Please sign in to comment.