UNPKG

@ogcio/o11y-sdk-react

Version:

Opentelemetry standard instrumentation SDK for React based project

10 lines 356 B
/** * Retrieves the current session ID from a provided Faro instance. * * @param {Faro} faro - The Faro instance to get the session from. * @returns {string | undefined} The ID of the current session, or `undefined` if no session exists. */ export function getSessionId(faro) { return faro.api.getSession()?.id; } //# sourceMappingURL=utils.js.map