Package 

Interface RumSessionListener


  • 
    public interface RumSessionListener
    
                        

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

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onSessionStarted(String sessionId, Boolean isDiscarded) Called whenever a new session is started.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onSessionStarted

         abstract Unit onSessionStarted(String sessionId, Boolean isDiscarded)

        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 sampling rate (when true it means no event in this session will be kept).