dd-sdk-reactnative icon indicating copy to clipboard operation
dd-sdk-reactnative copied to clipboard

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

Open AleCatSS opened this issue 2 years ago • 5 comments

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

  • Version of the SDK "@datadog/mobile-react-native": "1.2.0", "@datadog/mobile-react-navigation": "1.2.0"

AleCatSS avatar Feb 20 '23 19:02 AleCatSS

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.

louiszawadzki avatar Feb 23 '23 15:02 louiszawadzki

We're having the same issue, unfortunately.

tmadej avatar Mar 03 '23 08:03 tmadej

Any update here?

tmadej avatar Mar 10 '23 05:03 tmadej

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.

plousada avatar Mar 10 '23 10:03 plousada

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.

gdfreitas avatar Oct 10 '23 16:10 gdfreitas