Giter Club home page Giter Club logo

Comments (9)

fuzzybinary avatar fuzzybinary commented on July 17, 2024 1

Yes, the behavior you were seeing was expected. Attributes are considered a stateful property of the view, so changing them updates the property in the view. However, we do capture the current state of the global attributes at certain points of the view, it's just RUM will always show you its last known value.

I'm surprised that using the attributes parameter of startView didn't work for iOS -- can you supply some code that reproduces the issue you're seeing? iOS and Android should behave the same.

How you approach this depends on what you're trying to track. Can you give me more information about your use case?

from dd-sdk-flutter.

fuzzybinary avatar fuzzybinary commented on July 17, 2024

Hi @toussam,

So I can be clear on what you're expecting -- for a global attribute added through DatadogSdk.instance.rum?.addAttribute, you're expecting a view to have the value of the attribute when it started, even if that attribute is changed during the life of the view?

from dd-sdk-flutter.

toussam avatar toussam commented on July 17, 2024

Hi @fuzzybinary,

This is indeed the behavior that I was expecting / trying to reach.

Now that you're referring the view's lifecyle, it does make sense. So I presume that the only way to do so would be to set up the custom method for each event using the startView method's third parameter (attributes), am I right?

If so, I did tried this solution and it worked for Android, but sadly not for iOS. I just tested back and I can confirm you that the custom attribute's value is still being updated for the view event.

Also, using this solution, I noticed the #565 issue for the Web.

from dd-sdk-flutter.

fuzzybinary avatar fuzzybinary commented on July 17, 2024

@toussam Following up on this -- The original bug is as designed, but I'd still like to make sure startView is working as expected on iOS. Do you have an example of it not working as expected?

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.