From 9e3070e29e0bd5ae43e4b3ca0ebba6e31852d091 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Wed, 12 Feb 2025 13:33:48 +0100 Subject: [PATCH] fix: message of frames tracking warning (#2704) * fix message of frames tracking warning * update CHANGELOG --- CHANGELOG.md | 4 ++++ flutter/lib/src/integrations/frames_tracking_integration.dart | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14ef6215ce..22c1e999ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Disable `ScreenshotIntegration`, `WidgetsBindingIntegration` and `SentryWidget` in multi-view apps #2366 ([#2366](https://github.com/getsentry/sentry-dart/pull/2366)) +### Fixes + +- Reference to `SentryWidgetsFlutterBinding` in warning message in `FramesTrackingIntegration` ([#2704](https://github.com/getsentry/sentry-dart/pull/2704)) + ### Deprecations - Deprecate `autoAppStart` and `setAppStartEnd` ([#2681](https://github.com/getsentry/sentry-dart/pull/2681)) diff --git a/flutter/lib/src/integrations/frames_tracking_integration.dart b/flutter/lib/src/integrations/frames_tracking_integration.dart index b5be70a519..944987a02a 100644 --- a/flutter/lib/src/integrations/frames_tracking_integration.dart +++ b/flutter/lib/src/integrations/frames_tracking_integration.dart @@ -32,7 +32,7 @@ class FramesTrackingIntegration implements Integration { if (widgetsBinding == null || widgetsBinding is! SentryWidgetsBindingMixin) { return options.logger(SentryLevel.warning, - '$FramesTrackingIntegration disabled: incompatible binding, SentryFlutterWidgetsBinding has not been instantiated. Please, use SentryFlutterWidgetsBinding.ensureInitialized() instead of FlutterWidgetsBinding.ensureInitialized()'); + '$FramesTrackingIntegration disabled: incompatible binding, SentryWidgetsFlutterBinding has not been instantiated. Please, use SentryWidgetsFlutterBinding.ensureInitialized() instead of WidgetsFlutterBinding.ensureInitialized()'); } _widgetsBinding = widgetsBinding;