getsentry / sentry-java

A Sentry SDK for Java, Android and other JVM languages.
https://docs.sentry.io/
MIT License
1.15k stars 434 forks source link

Instrument WorkManager and Jobs #3579

Open romtsn opened 2 months ago

romtsn commented 2 months ago

Description

We could instrument Android's WorkManager (and maybe other schedulers like AlarmManager or JobDispatcher) and power our Queues module.

Potential things we could capture:

Android Studio's Jobs/Task inspector for inspiration: Google Chrome 2024-07-15 22 04 41

markushi commented 2 months ago

Let's investigate first:

kahest commented 2 months ago

internal writeup on instrumentation options by @stefanosiano

markushi commented 2 months ago

Since sentry's concept of queues doesn't match WorkManager very well, we could have breadcrumbs and Events (e.g. for failed jobs) as well.