MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / error

Function error

packages/core/src/logs/public-api.ts:201–207  ·  view source on GitHub ↗
(
  message: ParameterizedString,
  attributes?: Log['attributes'],
  { scope }: CaptureLogMetadata = {},
)

Source from the content-addressed store, hash-verified

199 * ```
200 */
201export function error(
202 message: ParameterizedString,
203 attributes?: Log['attributes'],
204 { scope }: CaptureLogMetadata = {},
205): void {
206 captureLog('error', message, attributes, scope);
207}
208
209/**
210 * @summary Capture a log with the `fatal` level. Requires the `enableLogs` option to be enabled.

Callers

nothing calls this directly

Calls 1

captureLogFunction · 0.70

Tested by

no test coverage detected