MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / captureException

Function captureException

packages/core/src/exports.ts:31–33  ·  view source on GitHub ↗
(exception: unknown, hint?: ExclusiveEventHintOrCaptureContext)

Source from the content-addressed store, hash-verified

29 * @returns the id of the captured Sentry event.
30 */
31export function captureException(exception: unknown, hint?: ExclusiveEventHintOrCaptureContext): string {
32 return getCurrentScope().captureException(exception, parseEventHintOrCaptureContext(hint));
33}
34
35/**
36 * Captures a message event and sends it to Sentry.

Callers 15

captureIfErrorFunction · 0.90
trpcMiddlewareFunction · 0.90
applyFunction · 0.90
consoleHandlerFunction · 0.90
captureErrorFunction · 0.90
expressErrorHandlerFunction · 0.90
applyFunction · 0.90
isErrorChunkFunction · 0.90
applyFunction · 0.90
applyFunction · 0.90
handleLLMErrorFunction · 0.90
handleChainErrorFunction · 0.90

Calls 3

getCurrentScopeFunction · 0.90
captureExceptionMethod · 0.45

Tested by

no test coverage detected