Skip to main content
Module

x/sentry/index.d.ts>Session

The Official Sentry Deno SDK
Go to Latest
interface Session
import { type Session } from "https://deno.land/x/sentry@8.0.0-beta.4/index.d.ts";

Properties

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

Methods

toJSON(): SerializedSession

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 @see SerializedSession in this file.