Sha256: ed0cfac4c0f1c2de88a8e9ab4e2af1b6773d1199aaa9b749842540e3e534267c

Contents?: true

Size: 192 Bytes

Versions: 7

Compression:

Stored size: 192 Bytes

Contents

# frozen_string_literal: true

class OpenTracingTestTracer
  module TraceId
    TRACE_ID_UPPER_BOUND = 2**64

    def self.generate
      rand(TRACE_ID_UPPER_BOUND).to_s(16)
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
signalfx_test_tracer-0.1.4 lib/signalfx_test_tracer/trace_id.rb
signalfx_test_tracer-0.1.3 lib/signalfx_test_tracer/trace_id.rb
signalfx_test_tracer-0.1.2 lib/signalfx_test_tracer/trace_id.rb
signalfx_test_tracer-0.1.1 lib/signalfx_test_tracer/trace_id.rb
signalfx_test_tracer-0.1.0 lib/signalfx_test_tracer/trace_id.rb
opentracing_test_tracer-0.1.1 lib/opentracing_test_tracer/trace_id.rb
opentracing_test_tracer-0.1.0 lib/opentracing_test_tracer/trace_id.rb