dd-sdk-reactnative
dd-sdk-reactnative copied to clipboard
session_id is 00000000-0000-0000-0000-000000000000 for 20% of the log entries in Android
Hello,
I am working on a React Native application for both Android and iOS. When inspecting logs in DD dashboard I noticed that the 'session_id' field on Android logs is '00000000-0000-0000-0000-000000000000' 20% of the times (on a sample of 700k logs entry I analyzed 122.500 shows the issue). On iOS this is not happening.
Steps to reproduce the issue:
In my project Datatog is initialized with the following code.
`const datadogConfig = new DatadogProviderConfiguration( 'CLIENT_TOKEN, 'ENV', 'RUM_APPLICATION_ID', true, true, true, );
datadogConfig.verbosity = SdkVerbosity.INFO; datadogConfig.sessionSamplingRate = 10; datadogConfig.resourceTracingSamplingRate = 10; datadogConfig.firstPartyHosts = ['abcdefg.com']; datadogConfig.initializationMode = InitializationMode.ASYNC;
` and logs are sent with
DdLogs.info('logging something', { .... });
Describe what you expected:
I expect session_id to not be 00000000-0000-0000-0000-000000000000.
Additional context
- Version of the SDK "@datadog/mobile-react-native": "1.2.0", "@datadog/mobile-react-navigation": "1.2.0"
Hi @AleCatSS, thanks for reaching out and reporting this.
We're able to see this problem on our end as well, we're going to investigate and let you know our findings.
We're having the same issue, unfortunately.
Any update here?
Hi @tmadej, we haven't yet reached a conclusion on what is the cause of this issue. We'll update the thread once we have news.
I also had experienced this, can this be related to when the user has no internet connection? Not sure where these ids are generated.
In my case, if I search in RUM sessions, there is no session with that id. I could only get to it by clicking on "View in context" of an error tracking open issue, which the platform prefill that session_id param for me.