-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
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/nestjs
SDK Version
8.35.0
Framework Version
Nestjs 10.2.8
Link to Sentry event
No response
Reproduction Example/SDK Setup
Sentry.init({
dsn: APP.SENTRY_DSN,
environment: APP.ENVIRONMENT,
ignoreErrors: ['Forbidden resource', 'Unauthorized'],
integrations: [
// Add our Profiling integration
nodeProfilingIntegration(),
],
// Set sampling rate for profiling
// This is relative to tracesSampleRate
profilesSampleRate: APP.SENTRY_PROFILES_SAMPLE_RATE,
// Add Tracing by setting tracesSampleRate
// We recommend adjusting this value in production
tracesSampleRate: APP.SENTRY_TRACES_SAMPLE_RATE,
Steps to Reproduce
Using Nestjs Decorator for Cron monitoring and receiving an error that sentry cannot upsert the event due to an invalid payload but it seems correct.
@Cron(CronExpression.EVERY_5_MINUTES, {
name: 'MyCron',
})
@SentryCron('MyCron')
Expected Result
It correctly upserts a new cron monitor for any new cron that we decorate in Nestjs.
Actual Result
chargome
Metadata
Metadata
Assignees
Labels
Projects
Status
No status