We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SaaS (https://sentry.io/)
Sentry logs are working on the local server but not on the staging server (Node js project).
No error logs are showing in the staging server's sentry.
Unknown
No response
instruction.js file
const Sentry = require('@sentry/node'); const {nodeProfilingIntegration} = require('@sentry/profiling-node'); const {PrismaInstrumentation} = require('@prisma/instrumentation'); try { Sentry.init({ dsn: process.env.SENTRY_DSN, enabled: true, debug: true, integrations: [ nodeProfilingIntegration(), Sentry.prismaIntegration({ // Override the default instrumentation that Sentry uses prismaInstrumentation: new PrismaInstrumentation(), }) ], // Add Tracing by setting tracesSampleRate // We recommend adjusting this value in production tracesSampleRate: 1.0, // Set sampling rate for profiling // This is relative to tracesSampleRate profilesSampleRate: 1.0, // Alternatively, to control sampling dynamically // tracesSampler: samplingContext => { /* ... */ }\ environment: process.env.NODE_ENV }); } catch (error) { console.error('Sentry initialization failed:', error); } Sentry.captureException(new Error('test exception'));
The text was updated successfully, but these errors were encountered:
Assigning to @getsentry/support for routing ⏲️
Sorry, something went wrong.
What is the "staging server"? We would need some more information on the deployment environment. Like is it on aws, Azure, Vercel, ...
And as there is a deployed staging server - is there a production server where the logs are working?
No branches or pull requests
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
Sentry logs are working on the local server but not on the staging server (Node js project).
Expected Result
No error logs are showing in the staging server's sentry.
Actual Result
Product Area
Unknown
Link
No response
DSN
No response
Version
No response
instruction.js file
The text was updated successfully, but these errors were encountered: