Files
formbricks-formbricks/apps/web/instrumentation.ts
Shubham Palriwala e4078a3307 feat: opentelemetry integration (#2235)
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2024-03-14 13:59:49 +00:00

8 lines
288 B
TypeScript

export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs" && process.env.OPENTELEMETRY_LISTENER_URL) {
const { startInstrumentationForNode } = await import("./instrumentation.node");
startInstrumentationForNode(process.env.OPENTELEMETRY_LISTENER_URL);
}
}