Skip to content

Commit 596caec

Browse files
committed
.
1 parent 1b973a9 commit 596caec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/node-core/src/integrations/nodeRuntimeMetrics.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { monitorEventLoopDelay, performance } from 'perf_hooks';
2-
import { defineIntegration, flushIfServerless, metrics, safeDateNow } from '@sentry/core';
2+
import { _INTERNAL_safeDateNow, defineIntegration, flushIfServerless, metrics } from '@sentry/core';
33

44
const INTEGRATION_NAME = 'NodeRuntimeMetrics';
55
const DEFAULT_INTERVAL_MS = 30_000;
@@ -52,7 +52,7 @@ export const nodeRuntimeMetricsIntegration = defineIntegration((options: NodeRun
5252
let eventLoopDelayHistogram: ReturnType<typeof monitorEventLoopDelay> | undefined;
5353

5454
function collectMetrics(): void {
55-
const now = safeDateNow();
55+
const now = _INTERNAL_safeDateNow();
5656
const elapsed = now - prevFlushTime;
5757

5858
if (collect.cpu && prevCpuUsage !== undefined) {
@@ -131,7 +131,7 @@ export const nodeRuntimeMetricsIntegration = defineIntegration((options: NodeRun
131131
if (collect.eventLoopUtilization) {
132132
prevElu = performance.eventLoopUtilization();
133133
}
134-
prevFlushTime = safeDateNow();
134+
prevFlushTime = _INTERNAL_safeDateNow();
135135

136136
// Guard against double setup (e.g. re-init).
137137
if (intervalId) {

0 commit comments

Comments
 (0)