Comments (10)
Hey @antonkad what platform are you using? Flutter Android, Flutter Web, Flutter iOS?
from datadog_flutter.
we are using Flutter Web, i've set the script in the index.html, as in the example. The Rum is working fine.
from datadog_flutter.
@antonkad could you please try this dev branch?
datadog_flutter:
git:
url: [email protected]/GetDutchie/datadog_flutter.git
ref: support-extra-info-web
from datadog_flutter.
Hello,
We've tried this new branch, btw if someone else passes here, in the url it's a ":" not a "/" such has in here:
url: [email protected]:GetDutchie/datadog_flutter.git
So after trying this out, we are facing another kind of problem related to the plateform:
UnsupportedError (Unsupported operation: Platform._operatingSystem)
In fact, when putting a break point, we can see that it tries to see if the plateform is iOS:
static Future<void> setUserInfo({
String? id,
String? email,
Map<String, dynamic>? extraInfo,
String? name,
}) async {
return await channel.invokeMethod('setUserInfo', {
'id': id,
'email': email,
'extraInfo': Platform.isIOS ? jsonEncode(extraInfo) : extraInfo,
'name': name,
});
}
https://github.com/GetDutchie/datadog_flutter/blob/main/lib/datadog_flutter.dart#L55
So we can't go thurther because of this erreur.
Regards
from datadog_flutter.
@antonkad please try again by commenting and uncommenting in your pubspec (to refresh the SHA). I've pushed a fix for this to the branch, I think.
from datadog_flutter.
We tried out the new version, the bug disapeared, but we no longer have any informations releated to the user (no user name, no user id). Neither in the user details, neither in the json attributes.
Do you know if there's a way to check the data that is sent, through a debugger localy ?
from datadog_flutter.
@antonkad this is tricky because everything is magically hidden in a Dart-to-JS translation. I'm not 100 percent sure how this works, and my debugging has been extremely seat-of-my-pants. I've got another idea in 570c178 (same branch) that could be worth trying.
The issue I'm hitting here is the attribute keys are unknown. And they can be mixed with the "reserved" keys of email
, id
, name
. So I can't declare a specific Dart class to handle this and instead have to leave the Dart-to-JS compilation more flexibility in converting the payload and forwarding that payload to the external setUser
function.
from datadog_flutter.
So I guess, please comment out that datadog_flutter
in your pubspec, save, and uncomment and make sure the SHA in your pubspec.lock reflects the new commit and give that another go please.
from datadog_flutter.
Hello,
It seems to be working on our side after testing, moreover the user informations, we are getting extrainfos displayed on datadog.
thanks a lot !
from datadog_flutter.
Great, glad to hear it
from datadog_flutter.
Related Issues (20)
- Loading Type and Loading Time not show in RUM HOT 5
- Beta2 still doesn't compile on Flutter 3 HOT 3
- Deprecation of Community Plugin HOT 4
- App crashes on iOS HOT 2
- MissingPluginException HOT 4
- Bug in Datadog Observer implementation HOT 3
- Status of 'Official' Datadog SDK Integration HOT 3
- Web Build Error 'TypeError: Cannot read properties of undefined (reading: 'init'), null, null) HOT 4
- Web Datadog Flutter error `Unsupported operation: Platform._operatingSystem` HOT 3
- `setUserInfo` `extraInfo` is not working on iOS. HOT 3
- Android API 31 Crash HOT 1
- Unable to determine Swift version for the following pods 'datadog_flutter' HOT 2
- datadog_flutter v1.7.0: App crashes when extraInfo property in setUserInfo method is null HOT 2
- Odd mappings of log levels happening on Android HOT 2
- Crash Reporting HOT 8
- Question: Why is tracing limited to http.Request HOT 8
- Disable [DEBUG] messages HOT 1
- Random failure when logging HOT 4
- pod 'DatadogSDKCrashReporting' is missing as of 1.7.3 HOT 9
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 datadog_flutter.