Skip to content

Commit

Permalink
changed last span criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
vgenev committed Oct 19, 2019
1 parent 92c4656 commit 691c3bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/masterSpan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ const cacheSpanContext = async (spanContext, state, content) => {
}

const isPrepareError = () => {
return (service === 'ml_notification_event' && tags.transactionType === 'transfer' && tags.transactionAction === 'prepare' && (!!trace && !!trace[trace.length - 1].spanContext.tags.error))
return (
service === 'ml_notification_event' &&
tags.transactionType === 'transfer' &&
tags.transactionAction === 'prepare' &&
(!!tags.errorCode || (!!trace && !!trace[trace.length - 1].spanContext.tags.errorCode)))
}

const isLastSpan = () => {
Expand Down

0 comments on commit 691c3bc

Please sign in to comment.