Comments (9)
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.
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.
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.
@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)
- 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][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.