-
-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
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
Crons support for Java #2875
Comments
We have some jobs that are effectively docker containers running in AWS ECS on a schedule. Providing an easy way to send cron data back from these jobs would also be useful. |
Hello @buckett I presume you're using Java in those containers? If so, which libraries are you using? Quartz? Spring? |
@adinauer Yeah Java, they are Spring Boot, but the triggering of the containers is AWS, so it would be nice to have the ability to start a cron monitor when the Spring application context is initialised and then complete it when it is destroyed. Or the hook could be against the JVM instead of binding against spring. |
I guess that means you're not using We'll consider the manually reporting CRONS use case when implementing. One thing that might be tricky here is order of Sentry.init vs when to send the event. |
It's basically a Spring CLI yeah. Manual reporting is basically what I'm after (through an API, we already have our own custom code that POST/PUTs to monitors and it would be nice to throw it away). We do have other services that use quartz so if there's support for automatically setting up the monitors based on the quartz schedule and then reporting checks that would be great. |
@buckett Your container use case should be covered by either annotating your method with We've also added support for Quartz but decided not to automatically create monitors for all jobs for now. If you're using Spring, all you need is to add the new Docs will be published soonish. We've added something to our Spring Boot 3 and Spring Boot 2 samples. We'd love your feedback! |
Problem Statement
We have a crons product so we could start sending check ins from the Java SDK.
Solution Brainstorm
The text was updated successfully, but these errors were encountered: