Skip to content

RumSessionListener

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

interface RumSessionListener

An interface to get informed whenever a new session is starting, providing you with Datadog's session id.

Functions

onSessionStarted

abstract fun onSessionStarted(sessionId: String, isDiscarded: Boolean)

Called whenever a new session is started.

Parameters
sessionId the Session's id (matching the session.id attribute in Datadog's RUM events)
isDiscarded whether or not the session is discarded by the sample rate (when true it means no event in this session will be kept).
Clone this wiki locally