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

x/sentry/index.mjs>captureMessage

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