Comments (6)
Hi @samuelcecilio thanks for reaching out!
It sounds like you already set the DatadogSdk.sdkVerbosity
to Verbosity.verbose
, but if not can you do that and post what console messages you're seeing? Additionally, are you seeing any messages every so often saying whether or not Datadog has any information to send?
Lastly, have you started a view using DatadogSdk.instance.rum?.startView()
, or by using named routes in conjunction with the DatadogNavigationObserver
?
from dd-sdk-flutter.
Hi, thanks. The main.dart
looks like:
Future<void> main() async {
runZonedGuarded<Future<void>>(
() async {
WidgetsFlutterBinding.ensureInitialized();
// called inside a function (await di.init())
await DatadogSdk.instance.initialize(
DdSdkConfiguration(
clientToken: remoteConfig.getString(CommonConsts.REMOTE_CONFIG_DATADOG_CLIENT_TOKEN),
env: const String.fromEnvironment(Environment.buildEnv),
site: DatadogSite.us1,
trackingConsent: TrackingConsent.granted,
nativeCrashReportEnabled: true,
loggingConfiguration: LoggingConfiguration(
sendNetworkInfo: true,
printLogsToConsole: true,
),
rumConfiguration: RumConfiguration(
applicationId: remoteConfig.getString(CommonConsts.REMOTE_CONFIG_DATADOG_APP_ID),
detectLongTasks: true,
),
),
);
FlutterError.onError = (FlutterErrorDetails details) {
FlutterError.presentError(details);
FirebaseCrashlytics.instance.recordFlutterError(details);
DatadogSdk.instance.rum?.handleFlutterError(details);
};
runApp(
BlocProvider.value(
value: di.sl<AuthBloc>(),
child: MyApp(),
),
);
},
(error, stack) {
FirebaseCrashlytics.instance.recordError(error, stack);
DatadogSdk.instance.rum?.addErrorInfo(error.toString(), RumErrorSource.source, stackTrace: stack);
},
);
}
Verbosity.verbose
is the default, or do I need to set it manually?
With only this setting, I automatically get memory usage statistics and error reports for iOS, for Android I don't get any.
from dd-sdk-flutter.
You need to set it manually. Before calling DatadogSdk.instance.initialize
, add:
DatadogSdk.sdkVerbosity = Verbosity.verbose;
The Datadog SDK is actually very verbose about what it's doing on this setting, so it is set to a lower level by default.
Are you calling DatadogSdk.instance.rum?.startView
or are you using the DatadogNavigationObserver
? And are you seeing views for individual sessions?
from dd-sdk-flutter.
I had not implemented the DatadogNavigationObserver
, apparently for iOS this was not a problem as everything was like ApplicationLaunch
:
BTW, verbosity looks differently for android and ios:
android
from dd-sdk-flutter.
Yes, under the hood, the Flutter SDK uses the native iOS / Android SDKs which are slightly different in what they output, and there are a few slight differences in how they report certain situations (like no initial view, as you found). Sometimes this is just based on some limitations of the platform and sometimes it's just difference in implementation. We're looking to correct as many of these as we can moving forward.
Does this resolve your issue do you need more help?
from dd-sdk-flutter.
Yep, solved!
from dd-sdk-flutter.
Related Issues (20)
- App crash - iOS Flutter HOT 2
- Unable to build the apk in andriod emulator after upgrading flutter and datadog to latest HOT 4
- [Version: 2.0.0]Unable to set `remoteLogThreshold` on `DatadogLoggerConfiguration` due to private enum HOT 1
- [Version: 2.0.0][Build] Unresolved reference: PerformanceTracker in Kotlin HOT 1
- [Docs - datadog_flutter_plugin] README has an image which doesn't work HOT 1
- Big Shoutout HOT 1
- Attribute with key `error` not populating in backend on Android HOT 5
- [Question] User identification HOT 1
- Datadog experienced a PlatformException - No logger available with handle 919809f1-a502-461e-b7f1-1735b75a1e16 in call to log. HOT 12
- DatadogSdk fails to initialise on Web HOT 10
- Anomaly on application_start duration HOT 7
- Dio requests tracking HOT 1
- How can I customize the error grouping? HOT 2
- [Bug] MissingPluginException upon process restoration (Android only) HOT 7
- Required headers to connect RUM and Traces are not being added when using Flutter web HOT 2
- _generateTraceId() throws RangeError on Flutter Web HOT 3
- [RUM][Mobile + Web] Custom attribute's value is being updated HOT 9
- [RUM][Web] View's custom attribute is not being sent HOT 2
- `No such module 'CrashReporter'` error when trying to run in Simulator HOT 12
- [iOS] Variant doesn't appear to be applied to logs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-sdk-flutter.