Skip to content

Commit

Permalink
init (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslemammad authored Feb 24, 2024
1 parent 5a7479f commit 94e3ebe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/telemetry/post.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { fetch } from 'undici';

if (
!('markResourceTiming' in performance) ||
typeof performance['markResourceTiming'] !== 'function'
) {
performance['markResourceTiming'] = () => {}
}

const MILLION_TELEMETRY_ENDPOINT =
'https://telemetry.million.dev/api/v1/record';

Expand Down

0 comments on commit 94e3ebe

Please sign in to comment.