Description
openedon Sep 10, 2024
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.30.0
Framework Version
nodejs 20.17.0
Link to Sentry event
No response
Reproduction Example/SDK Setup
I made a repo here to demo the issue: https://github.com/Xhale1/sentry-repro
Steps to Reproduce
- Clone the repo above
- Add your own sentry dsn
- Run the dev script
- Observe that the error only occurs when both
integrations: [nodeProfilingIntegration()]
andtracesSampleRate: 1
are set. Removing one or the other seems to make the error go away.
Expected Result
Fastify is instrumented properly.
Actual Result
Sentry prints the following to the console:
[Sentry] fastify is not instrumented. This is likely because you required/imported fastify before calling `Sentry.init()`.
Metadata
Assignees
Type
Projects
Status
No status
Activity