[Feature Request]: Get sessionId
Please provide your feature request
It looks like that current web client does not provide a feature to get the sessionId without cookies enabled.
This enables us to display the sessionId so that the end-user can pass it to our support team.
Sentry has this feature under getReplayId
https://docs.sentry.io/platforms/javascript/session-replay/understanding-sessions/#connect-replays-with-support-software
NB. There is an workaround, If cookies are enabled, by getting the sessionId (and userId) from the cookie.
Hi @tsuga , I'd really like to do this. Could you help me put together a more complete story to get this prioritized? Let me know
- Start new session
- Set session id
- Get session id
- Set user id
- Get user id
In addition are you interested in other metadata?
- Custom callback function to dynamically update custom metadata when the event is recorded
@williazz From my end, I need to get the session id. The motivation is for the support capability as mentioned above.
Getting the user id is not relevant to me since I don't activate the cookies.
Setting user/session id and create/terminate a session are not of my interest either. Though others may have a use case.
I hope this helps.
Hi @tsuga - to clarify, are you looking for the sessionId at runtime from within your application? Or within the RUM console?
Also, what web client version are you using? Starting from release 1.13.0, we should be generating unique sessionIds even if cookies are disabled.