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

x/sentry/index.d.ts>setHttpStatus

The Official Sentry Deno SDK
Latest
function setHttpStatus
import { setHttpStatus } from "https://deno.land/x/sentry@8.37.1/index.d.ts";

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