We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a26c508 commit 6fc0154Copy full SHA for 6fc0154
1 file changed
apps/site/instrumentation.ts
@@ -1,5 +1,7 @@
1
-import { registerOTel } from '@vercel/otel';
2
-
3
-export function register() {
4
- registerOTel({ serviceName: 'nodejs-org' });
+export async function register() {
+ if (!('Cloudflare' in globalThis)) {
+ // Note: we don't need to set up the Vercel OTEL if the application is running on Cloudflare
+ const { registerOTel } = await import('@vercel/otel');
5
+ registerOTel({ serviceName: 'nodejs-org' });
6
+ }
7
}
0 commit comments