Interface: Session
sentry.Session
Properties
abnormal_mechanism
• Optional
abnormal_mechanism: string
did
• Optional
did: string
| number
duration
• Optional
duration: number
environment
• Optional
environment: string
errors
• errors: number
ignoreDuration
• ignoreDuration: boolean
init
• init: boolean
ipAddress
• Optional
ipAddress: string
release
• Optional
release: string
sid
• sid: string
started
• started: number
status
• status: SessionStatus
timestamp
• timestamp: number
user
• Optional
user: null
| User
userAgent
• Optional
userAgent: string
Methods
toJSON
▸ 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
Returns
SerializedSession
a Sentry-backend conforming JSON object of the session
See
SerializedSession in this file.