From 26f1b02578838763ee703832194fe8b19c7dad53 Mon Sep 17 00:00:00 2001 From: Kalin Krustev Date: Thu, 23 May 2024 19:38:49 +0000 Subject: [PATCH] fix: tags --- src/lib/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/util.js b/src/lib/util.js index b17d2538..c1fa6df7 100644 --- a/src/lib/util.js +++ b/src/lib/util.js @@ -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] }