Module: EventHub::ExecutionId

Defined in:
lib/eventhub/execution_id.rb

Overview

ExecutionId module for storing the current message’s execution_id in thread-local storage for distributed tracing.

Class Method Summary collapse

Class Method Details

.clearObject



15
16
17
# File 'lib/eventhub/execution_id.rb', line 15

def clear
  Thread.current[:eventhub_execution_id] = nil
end

.currentObject



7
8
9
# File 'lib/eventhub/execution_id.rb', line 7

def current
  Thread.current[:eventhub_execution_id]
end

.current=(value) ⇒ Object



11
12
13
# File 'lib/eventhub/execution_id.rb', line 11

def current=(value)
  Thread.current[:eventhub_execution_id] = value
end