Skip to content

Commit

Permalink
Change docs
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Sep 9, 2024
1 parent c6fbdd8 commit e0ebe5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/tracing/measurement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
import { getActiveSpan, getRootSpan } from '../utils/spanUtils';

/**
* Adds a measurement to the current active transaction.
* Adds a measurement to the active transaction on the current global scope. You can optionally pass in a different span
* as the 4th parameter.
*/
export function setMeasurement(name: string, value: number, unit: MeasurementUnit, activeSpan = getActiveSpan()): void {
const rootSpan = activeSpan && getRootSpan(activeSpan);
Expand Down

0 comments on commit e0ebe5b

Please sign in to comment.