Skip to main content
Module

x/sentry_deno/main.ts>Session

Unofficial port of the Sentry SDK for JavaScript to Deno.
Latest
interface Session
import { type Session } from "https://deno.land/x/sentry_deno@v0.2.2/main.ts";

Properties

sid: string
optional
did: string
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

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.