Module: Arcp::Ids

Defined in:
lib/arcp/ids.rb

Class Method Summary collapse

Class Method Details

.call_idObject



13
# File 'lib/arcp/ids.rb', line 13

def call_id     = "call_#{SecureRandom.uuid_v7}"

.envelope_idObject



9
# File 'lib/arcp/ids.rb', line 9

def envelope_id = SecureRandom.uuid_v7

.job_idObject



11
# File 'lib/arcp/ids.rb', line 11

def job_id      = "job_#{SecureRandom.uuid_v7}"

.result_idObject



12
# File 'lib/arcp/ids.rb', line 12

def result_id   = "res_#{SecureRandom.uuid_v7}"

.resume_tokenObject



14
# File 'lib/arcp/ids.rb', line 14

def resume_token = SecureRandom.urlsafe_base64(24)

.session_idObject



10
# File 'lib/arcp/ids.rb', line 10

def session_id  = "ses_#{SecureRandom.uuid_v7}"

.span_idObject



16
# File 'lib/arcp/ids.rb', line 16

def span_id     = SecureRandom.hex(8)

.trace_idObject



15
# File 'lib/arcp/ids.rb', line 15

def trace_id    = SecureRandom.hex(16)