Comments (6)
@siavash-mohseni @xacaciax Please update to 1.5.2
from datadog_flutter.
Hey @siavash-mohseni thanks for using this package.
That's an interesting bug. So, ideally, nested dictionaries are handled with this recursive function. Are you passing in null values by any chance? Can you provide an example of an attribute payload that fails?
And I'd love the help if you wanted to work around that statement. My other thought is that your nested attributes don't have String
keys and thus there is no recursion.
from datadog_flutter.
Hi @tshedor,
Thanks for your answer.
I think my attributes are fairly simple. Something like this:
{ "exception": "exception message", "stackTrace": "stack trace string", "context": { "key1": "value1", "key2": "value2" } }
None of the values are null and all the keys are Strings.
I debugged the code and first time in recursive function it is coverting the context
successfully to [AttributeKey : AttributeValue]
but when it tries to convert the whole attributes and exit the function it return null.
It seems that the conversion is not successful when you have a nested dictionary in attributes here:
return unencodedAttributes as? [AttributeKey : AttributeValue]
](
If I remove the context node, or replace its value with a String it will work successfully.
I'm not a Swift expert, but it seems to me that the nested dictionary is not being considered a Codable type and Swift is not able to convert it accordingly.
Thanks a lot 👍
from datadog_flutter.
I am having a similar issue with List<String>
custom attributes not propagating to datadog for iOS devices when added to the user with the extraInfo
parameter.
When I add attributes to the user like:
await DatadogFlutter.setUserInfo(id: user.id, extraInfo: {
'organizations': ['demo', 'demo_probation'],
});
the attributes show up as Custom Attributes for Android devices but not for iOS.
from datadog_flutter.
Hi @tshedor, we are eagerly watching this issue. I checked with the engineers on my team to see if we could submit a fix for this but unfortunately we won't be able 😞 I wanted to ask here if you plan to fix this and if so, do you know when? Thank you! 🙏🏼
from datadog_flutter.
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
- extrainfo is not displayed in session's attributes HOT 10
- 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.