Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.18
Framework Version
Fastify v4
Link to Sentry event
No response
SDK Setup/Reproduction Example
Sentry.init({
dsn: "https://763f4daed63fb0d58072fa782c353c8d@o4505228622036992.ingest.us.sentry.io/4505903337570304",
debug: false,
integrations: [
nodeProfilingIntegration(),
],
tracesSampler: ({ name, attributes, parentSampled }) => {
// for fastify routes, name is always just the http method e.g. "GET"
}
Steps to Reproduce
See above ^
Expected Result
name should be the full route name e.g. POST /games/:gameId/join
Actual Result
The name returned is just "POST" I can get the url from attributes but this isn't ideal for parameterized routes.
Overall was a smooth experience upgrading from v7/fastify-sentry to native v8, great update otherwise! :)
Metadata
Metadata
Assignees
Type
Projects
Status
No status