class ScoutApm::Utils::TransactionId
Represents a random ID that we can use to track a certain transaction. The `trans` prefix is only for ease of reading logs - it should not be interpreted to convey any sort of meaning.
Public Class Methods
new()
click to toggle source
# File lib/scout_apm/utils/unique_id.rb, line 19 def initialize @random = SecureRandom.hex(16) end
Public Instance Methods
to_s()
click to toggle source
# File lib/scout_apm/utils/unique_id.rb, line 23 def to_s "trans-#{@random}" end