Comments (7)
Is there something that I'm missing in the setup here? If I had to guess, I would say that there is something being triggered incorrectly on the iOS side with the await DatadogSdk.instance.rum?.initialize();
function.
from dd-sdk-flutter.
Hi @mikhael28,
If you remove the event mappers, does iOS report properly?
I have a feeling Flutter got stricter about what threads can call into method channels. We may be incorrectly calling the mappers from off the main thread, and while I think Flutter may have always had the requirement that you should only call the method channel from the main thread, it didn't actually prevent it until recently.
If removing the mappers fixes the issue let me know and I'll get a fix out for them ASAP.
from dd-sdk-flutter.
I just ran my integration test for the mappers and they still pass, so unfortunately that's probably not your issue (something I still intend to fix, just not what's causing this). I would remove the mappers for now anyway, unless you need them for something.
You also shouldn't need to call DdRum.initialize
manually. It's called automatically by DatadogSdk.initialize
if a rumConfiguration
is present. Since this actually sets up the mapper method channel, there's a possibility that's partially causing the issue. Can you try removing it and see if that helps?
I'll add some protections to make sure double calling that issues a warning and mark the method as internal.
from dd-sdk-flutter.
Hey @fuzzybinary good news - the issue was only showing up in the local dev test, even with the mappers. When deploying to prod, it reports the RUM events as expected. Well, good news / bad news I guess. All in all, things are working which is good, but the situation seems brittle.
from dd-sdk-flutter.
I will be looking forward to the 2.0 release - will update this ticket at that time with anything else I've found, and hopefully be able to close this out. Updated the name of the ticket.
from dd-sdk-flutter.
@mikhael28 That's great to hear. This may be a significant enough issue I'm going to back port it to 1.x, but I won't put it at p0 for the time being.
from dd-sdk-flutter.
This should now be now fixed in v2.0
from dd-sdk-flutter.
Related Issues (20)
- 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
- Upgrade datadog_flutter_plugin js dependency to 0.7.x HOT 7
- Plugin does not log app's startup crashes. HOT 12
- Logs don't print to console with default `DatadogLoggerConfiguration` HOT 2
- Using `simpleConsolePrintForLevel()` shows all logs in the console at the same log level HOT 3
- [datadog_tracking_http_client] Web support HOT 4
- Is it not possible to use data dog from flutter isolate ? HOT 10
- Enforce native SDK dependencies HOT 2
- Datadog RUM is not working in Flutter Web HOT 5
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.