import { registerOTel } from "@vercel/otel";
import { PgInstrumentation } from "@opentelemetry/instrumentation-pg";

export function register() {
  registerOTel({
    serviceName: process.env.OTEL_SERVICE_NAME || "sidetrail-app",
    instrumentations: [new PgInstrumentation()],
  });
}
