Skip to content

Commit eec1781

Browse files
committed
update
1 parent 6a83baa commit eec1781

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dashboard/lib/services/metric-snapshot-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
groupBy,
1515
extractUserAgentIdentifier,
1616
} from '../utils';
17-
import { v4 as uuidv4 } from 'uuid';
17+
import { randomUUID } from 'crypto';
1818

1919
/**
2020
* Interval durations in milliseconds
@@ -57,7 +57,7 @@ export function createMetricSnapshot(
5757
const metrics = calculateSnapshotMetrics(windowedLogs, topLimit);
5858

5959
return {
60-
id: uuidv4(),
60+
id: randomUUID(),
6161
agent_id: agentId,
6262
agent_name: agentName,
6363
timestamp: now.toISOString(),

dashboard/next-env.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
4+
5+
// NOTE: This file should not be edited
6+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)