Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/sentry/index.d.ts>setMeasurement

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

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