otel_flutter_local_notifications 0.2.0
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 #
LocalNotificationsSemanticsenum +notificationTapEventNameconst — 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_notificationsconstraint 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. Carriesnotification.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 anotification.tapevent to the active span when a notification is tapped (call from youronDidReceiveNotificationResponsehandler).- Zone-scoped suppression
(
runWithoutLocalNotificationsInstrumentation/ async variant). - 3 tests.