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

Expose a way to get the Session Id

Open JIGsaw133 opened this issue 1 year ago • 7 comments

It looks like there'a way to get the session id through the web SDK but I couldn't find a similar way to get it from reactNative. I need it for the same purpose as the web app, to allow the user to contact us when they're encountering a problem.

https://github.com/DataDog/browser-sdk/issues/390

  • can you please expedite on this would help us to allow know exact user session where they faced the issue.

JIGsaw133 avatar Aug 30 '23 12:08 JIGsaw133

or if there is anything workaround to fetch the session id.

JIGsaw133 avatar Aug 30 '23 12:08 JIGsaw133

Hi @JIGsaw133, thanks for reaching out!

This feature is currently in our backlog. If this is urgent for you, please reach out through our support team so we can better assess the priority of this feature.

In any case, I will let you know in this issue when this is available.

louiszawadzki avatar Sep 06 '23 10:09 louiszawadzki

I'm adding a thumbs up here ! It would be really great to access this sessionId.

In the meantime, is their a way to set-up our own ID at the initialisation of the client ?

jheurtin avatar Dec 06 '23 15:12 jheurtin

Hi @jheurtin,

We don't enable setting up your own ID, and likely won't be supported soon as we would need to support all the possible session creation scenarios for this as well. Exposing the current session Id is still in our backlog, I'll bump it :)

If you do have a particular use case for this I'm curious as well, this can help us design the feature better.

Thanks a lot!

louiszawadzki avatar Dec 11 '23 16:12 louiszawadzki

We are in need of the same feature as well. Any updates on exposing the session id?

amol-chaudhari-cerebral avatar Dec 20 '23 16:12 amol-chaudhari-cerebral

Are there any updates on this? 🙏

HishamOmran avatar Feb 27 '24 09:02 HishamOmran

@JIGsaw133 @amol-chaudhari-cerebral @HishamOmran @jheurtin

Hello there! :wave:

We are currently working on exposing the session ID on React Native, and it will soon be released.

You can follow the progress of the PR here: https://github.com/DataDog/dd-sdk-reactnative/pull/662

marco-saia-datadog avatar May 14 '24 13:05 marco-saia-datadog

@JIGsaw133 @amol-chaudhari-cerebral @HishamOmran @jheurtin

Hello 👋

We have exposed a method to retrieve the Session ID with our latest release v2.3.5.

I will close this issue, feel free to re-open it if you encounter any problems!

marco-saia-datadog avatar Jun 13 '24 12:06 marco-saia-datadog