otel_workmanager 0.1.0
otel_workmanager: ^0.1.0 copied to clipboard
OpenTelemetry instrumentation for `package:workmanager`. Wraps background-task registration and execution with task.* spans.
Changelog #
0.1.0 - 2026-08-10 #
Added #
tracedWorkmanagerRegister<R>(...)— PRODUCER span aroundregisterOneOffTask/registerPeriodicTask(called from the app's main isolate).tracedWorkmanagerExecute<R>({taskName, inputData, body})— CONSUMER span wrapping the user's task body insidecallbackDispatcher.executeTask. Runs in the background isolate; requiresOTel.initialize()to have been called inside that isolate.- Zone-scoped suppression
(
runWithoutWorkmanagerInstrumentation/ async variant). WorkmanagerSemanticsenum for thetask.*attribute keys (no registry background-task convention exists yet).example/example.mdcovering both isolates.- 5 tests.
Changed #
workmanagerconstraint widened to>=0.6.0 <0.11.0(supports the latest 0.10.x; no workmanager API is called directly).