Explorar o código

fix: enable opentelemetry tracing on async workers via sqs/sns automation

Karol Sójko hai 1 ano
pai
achega
0a90502658

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

@@ -60,6 +60,7 @@ export class OpenTelemetrySDK implements OpenTelemetrySDKInterface {
         new ExpressInstrumentation(),
         new ExpressInstrumentation(),
         new AwsInstrumentation({
         new AwsInstrumentation({
           suppressInternalInstrumentation: true,
           suppressInternalInstrumentation: true,
+          sqsExtractContextPropagationFromPayload: true,
         }),
         }),
         new TypeormInstrumentation({
         new TypeormInstrumentation({
           collectParameters: false,
           collectParameters: false,