From 47fc1650ee2b40fd88049ac73784fbe0ac377191 Mon Sep 17 00:00:00 2001 From: Zachary Blasczyk Date: Mon, 23 Sep 2024 12:21:01 -0500 Subject: [PATCH] fix --- apps/webservice/src/instrumentation.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/webservice/src/instrumentation.ts b/apps/webservice/src/instrumentation.ts index 6be9fb74..11b0e1ea 100644 --- a/apps/webservice/src/instrumentation.ts +++ b/apps/webservice/src/instrumentation.ts @@ -2,10 +2,8 @@ import { registerInstrumentations } from "@opentelemetry/instrumentation"; import { PgInstrumentation } from "@opentelemetry/instrumentation-pg"; import { registerOTel } from "@vercel/otel"; -import { env } from "~/env"; - export async function register() { - if (env.NEXT_RUNTIME === "nodejs") await import("./instrumentation"); + await import("./instrumentation"); registerOTel({ serviceName: "ctrlplane/webservice" }); registerInstrumentations({ instrumentations: [