Skip to content

Commit

Permalink
chore: parseNotificationAndEvent should be child of active span
Browse files Browse the repository at this point in the history
  • Loading branch information
KishenKumarrrrr committed Nov 25, 2024
1 parent ab35496 commit bcce0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/email/services/email-callback.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const parseEvent = async (req: Request): Promise<void> => {
}
const parseNotificationAndEventSpan = tracer.startSpan(
'parseNotificationAndEvent',
{ childOf: parseJsonSpan }
{ childOf: tracer.scope().active() || undefined }
)
await Promise.all(records)
parseNotificationAndEventSpan.finish()
Expand Down

0 comments on commit bcce0e3

Please sign in to comment.