Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sentry/index.mjs>lastEventId

The Official Sentry Deno SDK
Latest
function lastEventId
import { lastEventId } from "https://deno.land/x/sentry@8.39.0-beta.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.