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

x/sentry/index.mjs>setHttpStatus

The Official Sentry Deno SDK
Latest
function setHttpStatus
import { setHttpStatus } from "https://deno.land/x/sentry@8.39.0-beta.0/index.mjs";

Sets the Http status attributes on the current span based on the http code. Additionally, the span's status is updated, depending on the http code.

Parameters

span: Span
httpStatus: number