Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sentry/index.mjs>setHttpStatus

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