Expose a way to get session idSee original GitHub issue
In my app, there is a “debug” page allowing users to send us a report. I would like to be able to display the session id in this report to help the support team accessing the logs corresponding to the session.
Right now I’ve to do something like this:
(datadogLogs.logger as any).session.getId()
It would be convenient to be able to do something like:
meaning that the session would not be anymore a private attribute here: https://github.com/DataDog/browser-sdk/blob/master/packages/logs/src/logger.ts#L132
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
I came here looking for this information, and with the above hints I put
DD_RUM.getInternalContext() into the Chrome console and one of the returned values is
session_id. Is this what you’re looking for?
Hi there 👋 Sorry for the disturbance. May I ask is there any progress on exposing a way to get session-id?