mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
9 lines
299 B
TypeScript
9 lines
299 B
TypeScript
import type {Event} from 'sentry/types';
|
|
|
|
export function getReplayIdFromEvent(event: Event | null | undefined) {
|
|
const replayTagId = event?.tags?.find(({key}) => key === 'replayId')?.value;
|
|
const replayContextId = event?.contexts?.replay?.replay_id;
|
|
|
|
return replayContextId ?? replayTagId;
|
|
}
|