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 22h
Merged PRs (30d)
69

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

Research direction

Start by reading Android's WorkManager documentation and locating the repository's Queues module. Compare the proposed WorkManager integration with AlarmManager and JobDispatcher, then define which job signals are in scope and how they should be represented. The issue does not name implementation files or tests, and completion criteria are not yet specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, kotlin
Domain
mobile, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.