Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sentry/index.mjs>Session

The Official Sentry Deno SDK
Latest
interface Session
import { type Session } from "https://deno.land/x/sentry@7.120.0/index.mjs";

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.