-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
BugIntegration: fastifyIssues related to Fastify support for the Sentry Node SDKIssues related to Fastify support for the Sentry Node SDKPackage: 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.34.0
Framework Version
No response
Link to Sentry event
Reproduction Example/SDK Setup
const server = Fastify({
maxParamLength: 15000,
trustProxy: true,
logger: {
enabled: CONFIGURATION.verbose,
transport: { target: "pino-pretty" },
},
})
Sentry.setupFastifyErrorHandler(server)
const sentryMiddleware = t.middleware(Sentry.trpcMiddleware({ attachRpcInput: true }))
import * as Sentry from "@sentry/node"
import { nodeProfilingIntegration } from "@sentry/profiling-node"
const isProduction = process.env.NODE_ENV === "production"
const dsn = process.env.SENTRY_DSN
Sentry.init({
environment: isProduction ? "prod" : "dev",
enabled: isProduction,
debug: false,
dsn: dsn,
integrations: [
nodeProfilingIntegration(),
Sentry.httpIntegration(),
Sentry.prismaIntegration(),
Sentry.fastifyIntegration(),
],
tracesSampleRate: 0.05,
profilesSampleRate: 1.0, // This is relative to tracesSampleRate
ignoreErrors: [
"User does not have permission",
"User is not a member of this workspace",
/^No .* found$/,
/BAD_REQUEST|TOO_MANY_REQUESTS|UNAUTHORIZED|FORBIDDEN|NOT_FOUND/,
],
})
Steps to Reproduce
I'm not sure how else to specify this. I installed the latest verison, and set it up as per the docs and I'm getting this spam.
Expected Result
The error messages are preserved.
Actual Result
I get DELETE,GET,HEAD,PATCH,POST,PUT,OPTIONS,PROPFIND,PROPPATCH,MKCOL,COPY,MOVE,LOCK,UNLOCK,TRACE,SEARCH /trpc/:path
on almost every Sentry issue...
chargome
Metadata
Metadata
Assignees
Labels
BugIntegration: fastifyIssues related to Fastify support for the Sentry Node SDKIssues related to Fastify support for the Sentry Node SDKPackage: nodeIssues related to the Sentry Node SDKIssues related to the Sentry Node SDK
Projects
Status
Waiting for: Community