Sha256: e67bca6c76d397ef46f6d5a8b64cdd18188f6d2dd81a7cf8c821ed96a3152c2d

Contents?: true

Size: 285 Bytes

Versions: 8

Compression:

Stored size: 285 Bytes

Contents

# frozen_string_literal: true

module Zipkin
  class ScopeManager
    # @api private
    class ScopeIdentifier
      def self.generate
        # 65..90.chr are characters between A and Z
        "opentracing_#{(0...8).map { rand(65..90).chr }.join}".to_sym
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
zipkin-1.6.3 lib/zipkin/scope_manager/scope_identifier.rb
zipkin-1.6.2 lib/zipkin/scope_manager/scope_identifier.rb
zipkin-1.6.1 lib/zipkin/scope_manager/scope_identifier.rb
zipkin-1.6.0 lib/zipkin/scope_manager/scope_identifier.rb
zipkin-1.5.2 lib/zipkin/scope_manager/scope_identifier.rb
zipkin-1.5.1 lib/zipkin/scope_manager/scope_identifier.rb
zipkin-1.5.0 lib/zipkin/scope_manager/scope_identifier.rb
zipkin-1.4.0 lib/zipkin/scope_manager/scope_identifier.rb