File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff 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 ( ) ,
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments