Skip to content

Commit 9078e45

Browse files
andreiborzaLms24
andauthored
Update packages/core/src/exports.ts
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
1 parent f4bdfcc commit 9078e45

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/core/src/exports.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,14 @@ export function setUser(user: User | null): void {
121121
}
122122

123123
/**
124-
* The last event id of the isolation scope.
124+
* The last error event id of the isolation scope.
125+
*
126+
* Warning: This function really returns the last recorded error event id on the current
127+
* isolation scope. If you call this function after handling a certain error and another error
128+
* is captured in between, the last one is returned instead of the one you might expect.
129+
* Also, ids of events that were never sent to Sentry (for example because
130+
* they were dropped in `beforeSend`) could be returned.
131+
*
125132
* @returns The last event id of the isolation scope.
126133
*/
127134
export function lastEventId(): string | undefined {

0 commit comments

Comments
 (0)