class ScoutApm::Utils::SpanId

Represents a random ID that we can use to track a certain span. The `span` 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 32
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 36
def to_s
  "span-#{@random}"
end