Giter Club home page Giter Club logo

Comments (7)

mikhael28 avatar mikhael28 commented on August 16, 2024

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.

fuzzybinary avatar fuzzybinary commented on August 16, 2024

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.

fuzzybinary avatar fuzzybinary commented on August 16, 2024

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.

mikhael28 avatar mikhael28 commented on August 16, 2024

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.

mikhael28 avatar mikhael28 commented on August 16, 2024

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.

fuzzybinary avatar fuzzybinary commented on August 16, 2024

@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.

fuzzybinary avatar fuzzybinary commented on August 16, 2024

This should now be now fixed in v2.0

from dd-sdk-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.