Skip to main content
Module

x/sentry/index.mjs>setMeasurement

The Official Sentry Deno SDK
Latest
function setMeasurement
import { setMeasurement } from "https://deno.land/x/sentry@8.30.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