DataDog / dd-sdk-reactnative

Datadog SDK for ReactNative
Apache License 2.0
120 stars 41 forks source link

session_id is 00000000-0000-0000-0000-000000000000 for 20% of the log entries in Android #410

Open AleCatSS opened 1 year ago

AleCatSS commented 1 year ago

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.

image

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

louiszawadzki commented 1 year ago

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.

tmadej commented 1 year ago

We're having the same issue, unfortunately.

tmadej commented 1 year ago

Any update here?

plousada commented 1 year ago

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.

gdfreitas commented 12 months ago

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.