Class SessionEndEvent
-
- All Implemented Interfaces:
-
io.opentelemetry.android.semconv.events.OpenTelemetryEvent
public final class SessionEndEvent implements OpenTelemetryEvent
<p>Indicates that a session has ended.</p> <p>Notes:</p> <p>For instrumentation that tracks user behavior during user sessions, a <c>session.end</c> event SHOULD be emitted every time a session ends. When a session ends and continues as a new session, this event SHOULD be emitted prior to the <c>session.start</c> event.</p>
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringSESSION_END_EVENT_NAMEprivate final StringsessionId
-
Constructor Summary
Constructors Constructor Description SessionEndEvent(String sessionId)
-
Method Summary
Modifier and Type Method Description final StringgetSessionId()<p>The ID of the session being ended.</p> Unitemit(Logger logger, Attributes additionalAttributes)Emits this event through logger, including any additionalAttributes. -
-
Constructor Detail
-
SessionEndEvent
SessionEndEvent(String sessionId)
-
-
Method Detail
-
getSessionId
final String getSessionId()
<p>The ID of the session being ended.</p>
-
emit
Unit emit(Logger logger, Attributes additionalAttributes)
Emits this event through logger, including any additionalAttributes.
-
-
-
-