Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(otel): reduce Prisma OTEL span noise via ignoreSpanTypes (#12638)

Steffen Schmitz013986d5f1ca
diff --git a/web/src/observability.config.ts b/web/src/observability.config.ts
index e5fa22c811..c5fa632685 100644
--- a/web/src/observability.config.ts
+++ b/web/src/observability.config.ts
@@ -53,7 +53,15 @@ const sdk = new NodeSDK({
span.setAttribute("http.route", path);
},
}),
- new PrismaInstrumentation(),
+ new PrismaInstrumentation({
+ ignoreSpanTypes: [
+ "prisma:client:serialize",
+ "prisma:engine:query",
+ "prisma:engine:connection",
+ "prisma:engine:serialize",
+ "prisma:engine:response_json_serialization",
+ ],
+ }),
new AwsInstrumentation(),
new WinstonInstrumentation({ disableLogSending: true }),
new BullMQInstrumentation({ useProducerSpanAsConsumerParent: true }),
diff --git a/worker/src/instrumentation.ts b/worker/src/instrumentation.ts
index 6944cf1741..4ce431f778 100644
--- a/worker/src/instrumentation.ts
+++ b/worker/src/instrumentation.ts
@@ -53,7 +53,15 @@ const sdk = new NodeSDK({
},
}),
new ExpressInstrumentation(),
- new PrismaInstrumentation(),
+ new PrismaInstrumentation({
+ ignoreSpanTypes: [
+ "prisma:client:serialize",
+ "prisma:engine:query",
+ "prisma:engine:connection",
+ "prisma:engine:serialize",
+ "prisma:engine:response_json_serialization",
+ ],
+ }),
new AwsInstrumentation(),
new WinstonInstrumentation({ disableLogSending: true }),
new BullMQInstrumentation({ useProducerSpanAsConsumerParent: true }),