Module: Arcp::Ids
- Defined in:
- lib/arcp/ids.rb
Class Method Summary collapse
- .call_id ⇒ Object
- .envelope_id ⇒ Object
- .job_id ⇒ Object
- .result_id ⇒ Object
- .resume_token ⇒ Object
- .session_id ⇒ Object
- .span_id ⇒ Object
- .trace_id ⇒ Object
Class Method Details
.call_id ⇒ Object
13 |
# File 'lib/arcp/ids.rb', line 13 def call_id = "call_#{SecureRandom.uuid_v7}" |
.envelope_id ⇒ Object
9 |
# File 'lib/arcp/ids.rb', line 9 def envelope_id = SecureRandom.uuid_v7 |
.job_id ⇒ Object
11 |
# File 'lib/arcp/ids.rb', line 11 def job_id = "job_#{SecureRandom.uuid_v7}" |
.result_id ⇒ Object
12 |
# File 'lib/arcp/ids.rb', line 12 def result_id = "res_#{SecureRandom.uuid_v7}" |
.resume_token ⇒ Object
14 |
# File 'lib/arcp/ids.rb', line 14 def resume_token = SecureRandom.urlsafe_base64(24) |
.session_id ⇒ Object
10 |
# File 'lib/arcp/ids.rb', line 10 def session_id = "ses_#{SecureRandom.uuid_v7}" |
.span_id ⇒ Object
16 |
# File 'lib/arcp/ids.rb', line 16 def span_id = SecureRandom.hex(8) |
.trace_id ⇒ Object
15 |
# File 'lib/arcp/ids.rb', line 15 def trace_id = SecureRandom.hex(16) |