Skip to content

Commit

Permalink
update eventlistener to use transaction id as string
Browse files Browse the repository at this point in the history
  • Loading branch information
dtayeh committed Nov 26, 2024
1 parent 5929f24 commit f16b78c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ import java.util.concurrent.atomic.AtomicReference
*
* @property transactionId A reference to the unique transaction ID associated with the HTTP call.
*/
class OkHttpEventListener private constructor(private val transactionId: AtomicReference<UUID>) : EventListener() {
class OkHttpEventListener private constructor(private val transactionId: AtomicReference<String>) : EventListener() {

private val log = ExpediaGroupLoggerFactory.getLogger(this::class.java)

companion object {
val FACTORY: Factory =
Factory { call ->
val transactionIdHeader = call.request().header(HeaderKey.TRANSACTION_ID)
val transactionId = AtomicReference(UUID.fromString(transactionIdHeader))
val transactionId = AtomicReference(transactionIdHeader.toString())
OkHttpEventListener(transactionId)
}
}
Expand Down

0 comments on commit f16b78c

Please sign in to comment.