interface Session {
    abnormal_mechanism?: string;
    did?: string | number;
    duration?: number;
    environment?: string;
    errors: number;
    ignoreDuration: boolean;
    init: boolean;
    ipAddress?: string;
    release?: string;
    sid: string;
    started: number;
    status: SessionStatus;
    timestamp: number;
    user?: null | User;
    userAgent?: string;
    toJSON(): SerializedSession;
}

Properties

abnormal_mechanism?: string
did?: string | number
duration?: number
environment?: string
errors: number
ignoreDuration: boolean
init: boolean
ipAddress?: string
release?: string
sid: string
started: number
status: SessionStatus
timestamp: number
user?: null | User
userAgent?: string

Methods

  • Overrides default JSON serialization of the Session because the Sentry servers expect a slightly different schema of a session which is described in the interface

    Returns SerializedSession

    a Sentry-backend conforming JSON object of the session

    SerializedSession in this file.