otel_flutter_local_notifications 0.2.0 copy "otel_flutter_local_notifications: ^0.2.0" to clipboard
otel_flutter_local_notifications: ^0.2.0 copied to clipboard

OpenTelemetry instrumentation for `package:flutter_local_notifications`. Wraps show / schedule / cancel with notification.* spans.

Changelog #

0.2.0 - 2026-08-09 #

Added #

  • LocalNotificationsSemantics enum + notificationTapEventName const — all emitted attribute keys and event names are now exported constants instead of raw string literals (keys unchanged on the wire).
  • example/.

Changed #

  • Widened flutter_local_notifications constraint to >=17.0.0 <23.0.0 (the instrumentation wraps calls via closures and works across these majors).

0.1.0-beta.1 - 2026-05-16 #

Added #

  • tracedLocalNotificationCall<R>({operation, id, invoke}) — PRODUCER span around show/schedule/cancel calls. Carries notification.system=flutter_local_notifications, notification.operation, notification.id. The notification body (title/text) is intentionally NOT recorded — it often contains user-visible PII.
  • recordNotificationResponse({id, payload}) — adds a notification.tap event to the active span when a notification is tapped (call from your onDidReceiveNotificationResponse handler).
  • Zone-scoped suppression (runWithoutLocalNotificationsInstrumentation / async variant).
  • 3 tests.
0
likes
160
points
72
downloads

Documentation

API reference

Publisher

verified publisherdartastic.io

Weekly Downloads

OpenTelemetry instrumentation for `package:flutter_local_notifications`. Wraps show / schedule / cancel with notification.* spans.

Homepage
Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

dartastic_opentelemetry, dartastic_opentelemetry_api, flutter, flutter_local_notifications

More

Packages that depend on otel_flutter_local_notifications