Skip to main content
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.0.0-beta.4/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