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

x/sentry/index.mjs>setMeasurement

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

Adds a measurement to the active transaction on the current global scope. You can optionally pass in a different span as the 4th parameter.

Parameters

name: string
value: number
unit: MeasurementUnit
optional
activeSpan: Span | undefined