Skip to content

Commit

Permalink
fix: updated binding context for callbacks to only define logger
Browse files Browse the repository at this point in the history
  • Loading branch information
cjr125 authored and cjr125 committed Jan 24, 2025
1 parent d9d89b1 commit 949e9d0
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ class TransactionService {
}
return tags
}
presetOptions.transactionContextCallback = tCC.bind(this)
presetOptions.transactionContextCallback = tCC.bind({
_logger: this._logger
})
}
if (typeof config.spanContextCallback === 'function') {
const sCC = function () {
Expand All @@ -129,7 +131,9 @@ class TransactionService {
}
return tags
}
presetOptions.spanContextCallback = sCC.bind(this)
presetOptions.spanContextCallback = sCC.bind({
_logger: this._logger
})
}
let perfOptions = extend(presetOptions, options)
if (perfOptions.managed) {
Expand Down

0 comments on commit 949e9d0

Please sign in to comment.