JavaScript SDK - incident method
This method allows you to mark a significant event or an incident during a user’s session. Incidents are typically used to highlight important occurrences, such as errors, crashes, or other noteworthy events that require attention. By marking these incidents, you can easily identify and analyze them within the session replay.
Signature
Section titled Signature// call incident function and pass label, startTime, and endTime (label and endTime are optional)
incident({ label: 'incident', startTime: Date.now() - 1000, endTime: Date.now() })
## Parameters
- `label: string`: The name of the marked event.
- `startTime: number`: Timestamp signaling event start.
- `endTime: number` : Timestamp of end of the event.