Skip to main content
The Deno 2 Release Candidate is 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.32.0/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