Skip to main content
Event types define the structure of events sent to Sentry.

Event Interface

From packages/core/src/types-hoist/event.ts:

Fields

event_id

string
Unique identifier for the event (UUID format).

message

string
The log message or event description.

timestamp

number
Unix timestamp (seconds) when the event occurred.

level

SeverityLevel
Event severity: 'fatal', 'error', 'warning', 'info', 'debug', or 'log'.

platform

string
Platform identifier (e.g., 'javascript', 'node', 'python').

release

string
Release version of the application.

environment

string
Environment name (e.g., 'production', 'staging').

tags

Record<string, Primitive>
Key-value pairs for filtering and grouping.

extra

Extras
Additional arbitrary data.

user

User
User information. See User Types for details.

contexts

Contexts
Additional context data organized by type.
Breadcrumb[]
Trail of events leading to the error. See Breadcrumb Types.

exception

object
Exception information.
Exception[]
Array of exception objects.

request

RequestEventData
HTTP request information.

fingerprint

string[]
Custom grouping fingerprint.

Event Types

Error Event

Default event type for errors:

Transaction Event

Performance tracking event:

EventHint

Additional context passed with events:

Fields

unknown
The original exception object.
Error
Synthetic exception for stack traces.
Attachment[]
File attachments to include.

Exception

Example

Mechanism

Example

Complete Example