diff --git a/backend/src/email/services/email-callback.service.ts b/backend/src/email/services/email-callback.service.ts index 110af4acd..efe0a0c2d 100644 --- a/backend/src/email/services/email-callback.service.ts +++ b/backend/src/email/services/email-callback.service.ts @@ -45,7 +45,7 @@ const parseEvent = async (req: Request): Promise => { } const parseNotificationAndEventSpan = tracer.startSpan( 'parseNotificationAndEvent', - { childOf: parseJsonSpan } + { childOf: tracer.scope().active() || undefined } ) await Promise.all(records) parseNotificationAndEventSpan.finish()