Skip to content

Commit

Permalink
fix: tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinkrustev committed May 23, 2024
1 parent 7b97356 commit 26f1b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const getSpanTags = ({ payload, headers, params, spanContext }, transactionType,
const tags = {
transactionType,
transactionAction,
transactionId: (payload && payload.transactionId) || (params && params.id) || (spanContext && spanContext.transactionId),
quoteId: (payload && payload.quoteId) || (params && params.id) || (spanContext && spanContext.quoteId),
transactionId: (payload && payload.transactionId) || (params && params.id) || (spanContext?.tags?.transactionId),
quoteId: (payload && payload.quoteId) || (params && params.id) || (spanContext?.tags?.quoteId),
source: headers[Enum.Http.Headers.FSPIOP.SOURCE],
destination: headers[Enum.Http.Headers.FSPIOP.DESTINATION]
}
Expand Down

0 comments on commit 26f1b02

Please sign in to comment.