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 7653006 commit 7b97356
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ const failActionHandler = async (request, h, err) => {
throw err
}

const getSpanTags = ({ payload, headers, params }, transactionType, transactionAction) => {
const getSpanTags = ({ payload, headers, params, spanContext }, transactionType, transactionAction) => {
const tags = {
transactionType,
transactionAction,
transactionId: (payload && payload.transactionId) || (params && params.id),
quoteId: (payload && payload.quoteId) || (params && params.id),
transactionId: (payload && payload.transactionId) || (params && params.id) || (spanContext && spanContext.transactionId),
quoteId: (payload && payload.quoteId) || (params && params.id) || (spanContext && spanContext.quoteId),
source: headers[Enum.Http.Headers.FSPIOP.SOURCE],
destination: headers[Enum.Http.Headers.FSPIOP.DESTINATION]
}
Expand Down

0 comments on commit 7b97356

Please sign in to comment.