Skip to main content
Module

x/sentry/index.mjs>lastEventId

The Official Sentry Deno SDK
Go to Latest
function lastEventId
import { lastEventId } from "https://deno.land/x/sentry@8.3.0/index.mjs";

The last error event id of the isolation scope.

Warning: This function really returns the last recorded error event id on the current isolation scope. If you call this function after handling a certain error and another error is captured in between, the last one is returned instead of the one you might expect. Also, ids of events that were never sent to Sentry (for example because they were dropped in beforeSend) could be returned.

Returns

string | undefined

The last event id of the isolation scope.