Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk committed Sep 23, 2024
1 parent 81a0ea9 commit 47fc165
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/webservice/src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 47fc165

Please sign in to comment.