Browse Source

fix(domain-events-infra): supress typeorm internal instrumentation

Karol Sójko 1 year ago
parent
commit
1246af2551

+ 4 - 1
packages/domain-events-infra/src/Infra/OpenTelemetry/OpenTelemetrySDK.ts

@@ -61,7 +61,10 @@ export class OpenTelemetrySDK implements OpenTelemetrySDKInterface {
         new AwsInstrumentation({
           suppressInternalInstrumentation: true,
         }),
-        new TypeormInstrumentation(),
+        new TypeormInstrumentation({
+          collectParameters: false,
+          suppressInternalInstrumentation: true,
+        }),
         winstonInstrumentation,
         new IORedisInstrumentation(),
       ],