sentry-java
sentry-java copied to clipboard
Instrument WorkManager and Jobs
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:
- Job Status
- Job Start timestamp
- Job Duration
- Job Retries
- Job Constraints (network, etc)
- Job Frequency
- Call Stack
Android Studio's Jobs/Task inspector for inspiration:
Let's investigate first:
- If/how we can instrument the different work schedulers
- How the
queuesmodule works under the hood and if the data model would the mobile use case (there's one queue per user vs. one queue per server instance)
internal writeup on instrumentation options by @stefanosiano
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.