Skip to content

Commit

Permalink
chore: manually add reference parent span
Browse files Browse the repository at this point in the history
  • Loading branch information
KishenKumarrrrr committed Nov 25, 2024
1 parent d76e16c commit 40c12d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/email/services/email-callback.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const isAuthenticated = (authHeader?: string): boolean => {
}

const parseEvent = async (req: Request): Promise<void> => {
const parseJsonSpan = tracer.startSpan('parseJson')
const parentSpan = tracer.scope().active() || undefined
const parseJsonSpan = tracer.startSpan('parseJson', { childOf: parentSpan })
const parsed = JSON.parse(req.body)
parseJsonSpan.finish()
let records: Promise<void>[] = []
Expand Down

0 comments on commit 40c12d5

Please sign in to comment.