RumSessionListener - DataDog/dd-sdk-android GitHub Wiki

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).