Skip to main content
Module

x/sentry/index.mjs>captureMessage

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

Captures a message event and sends it to Sentry.

Parameters

message: string

The exception to capture.

optional
captureContext: CaptureContext | Severity | SeverityLevel

Define the level of the message or pass in additional data to attach to the message.

Returns

string

the id of the captured message.