0

Between 4 and 5 o'clock a remote system is regularly down.

This means some cron jobs produce exceptions.

Is there a way to ignore these exceptions.

But exceptions before or after that time period are important.

guettli
  • 25,042
  • 81
  • 346
  • 663

2 Answers2

2

This is currently not possible with Sentry.

If you want you can watch this GitHub Sentry issue: Mute whole projects in case of maintenance downtime #1517.

Thomas Schwärzl
  • 9,518
  • 6
  • 43
  • 69
1

Actually, there is a workaround for that;

Sentry.init(options -> {
                    options.setBeforeSend((event, hint) -> {
                        if (time is between 4-5 o-clock) {
                            return null;
                        }
                        return event;
                    });
                }
);