-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
bugSomething isn't workingSomething isn't workingpending-native-sdkThis issue is dependent on the release of a native SDK.This issue is dependent on the release of a native SDK.
Description
Describe the bug
W/Datadog ( 3009): [_dd.sdk_core.default]: A RUM event was detected, but no view is active. To track views automatically, try calling the RumConfiguration.Builder.useViewTrackingStrategy() method.
W/Datadog ( 3009): You can also track views manually using the RumMonitor.startView() and RumMonitor.stopView() methods.
Reproduction steps
final originalOnError = FlutterError.onError;
FlutterError.onError = (details) {
DatadogSdk.instance.rum?.handleFlutterError(details);
originalOnError?.call(details);
};
final platformOriginalOnError = PlatformDispatcher.instance.onError;
PlatformDispatcher.instance.onError = (e, st) {
DatadogSdk.instance.rum?.addErrorInfo(
e.toString(),
RumErrorSource.source,
stackTrace: st,
);
return platformOriginalOnError?.call(e, st) ?? false;
};
final configuration = DatadogConfiguration(
clientToken: datadogClientToken,
env: Config.instance.env,
site: DatadogSite.us1,
nativeCrashReportEnabled: true,
loggingConfiguration: DatadogLoggingConfiguration(),
rumConfiguration: DatadogRumConfiguration(
applicationId: datadogApplicationId,
sessionSamplingRate: 100.0,
reportFlutterPerformance: true,
),
firstPartyHosts: ['domain.com'],
)..enableHttpTracking();
await DatadogSdk.runApp(configuration, TrackingConsent.granted, () async {
runApp(
GetMaterialApp.router(
builder: (context, child) {
return MediaQuery(
data: MediaQuery.of(context).copyWith(
textScaler: const TextScaler.linear(1.0),
),
child: Overlay(
initialEntries: [
if (child != null) ...[
OverlayEntry(
builder: (context) => RumUserActionDetector(
rum: DatadogSdk.instance.rum,
child: child,
),
),
],
],
),
);
},
theme: ThemeData(
useMaterial3: true,
colorSchemeSeed: TWColor.lightBlue500,
),
title: "myApp",
themeMode: ThemeMode.light,
routeInformationParser: AppPages.router.routeInformationParser,
routeInformationProvider: AppPages.router.routeInformationProvider,
routerDelegate: AppPages.router.routerDelegate,
debugShowCheckedModeBanner: false,
localizationsDelegates: const [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
supportedLocales: const [
Locale('ko', 'KR'),
],
locale: const Locale('ko'),
),
);
});I don't know why, but I keep getting the above log periodically.
SDK logs
No response
Expected behavior
No response
Affected SDK versions
2.3.0
Latest working SDK version
No response
Did you confirm if the latest SDK version fixes the bug?
Yes
Flutter Version
3.22.0
Setup Type
No response
Device Information
No response
Other relevant information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpending-native-sdkThis issue is dependent on the release of a native SDK.This issue is dependent on the release of a native SDK.