getsentry / getsentry/sentry-java

Instrument WorkManager and Jobs

Open
#3,579 3 comments 0 reactions 0 assignees View on GitHub
Android Feature Spans
Dominant language
Kotlin
Stars
1.4k
Forks
478
Avg merge
2d 23h
Merged PRs (30d)
67

Description

### Description

We could instrument Android's [WorkManager](https://developer.android.com/topic/libraries/architecture/workmanager) (and maybe other schedulers like [AlarmManager](https://developer.android.com/develop/background-work/services/alarms/schedule) or [JobDispatcher](https://developer.android.com/develop/background-work/background-tasks/persistent/migrate-from-legacy/firebase)) 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:
![Google Chrome 2024-07-15 22 04 41](https://github.com/user-attachments/assets/bf195dce-6254-4002-90ad-63ae087a04af)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.