File: scope_identifier.rb

package info (click to toggle)
ruby-jaeger-client 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 624 kB
  • sloc: ruby: 3,381; makefile: 6; sh: 4
file content (13 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Jaeger
  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