Skip to content

Commit e0ebe5b

Browse files
committed
Change docs
1 parent c6fbdd8 commit e0ebe5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/tracing/measurement.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import {
66
import { getActiveSpan, getRootSpan } from '../utils/spanUtils';
77

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

0 commit comments

Comments
 (0)