-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Package: nodeIssues related to the Sentry Node SDKIssues related to the Sentry Node SDK
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.2.1
Framework Version
No response
Link to Sentry event
No response
SDK Setup
// app.mjs
import * as Sentry from "@sentry/node";
import { fastify } from "fastify";
const app = fastify();
Sentry.setupFastifyErrorHandler(app);
const address = await app.listen();
console.info(`server listening on ${address}`);// instrument.mjs
import * as Sentry from "@sentry/node";
Sentry.init({ dsn: process.env.SENTRY_DSN, debug: true });Steps to Reproduce
node --import ./instrument.mjs app.mjs
Expected Result
Works
Actual Result
[Sentry] Fastify is not instrumented. This is likely because you required/imported fastify before calling `Sentry.init()`.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Package: nodeIssues related to the Sentry Node SDKIssues related to the Sentry Node SDK
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
No status