Class: Semlogr::Enrichers::Thread

Inherits:
Object
  • Object
show all
Defined in:
lib/semlogr/enrichers/thread.rb

Instance Method Summary collapse

Instance Method Details

#enrich(log_event) ⇒ Object



6
7
8
# File 'lib/semlogr/enrichers/thread.rb', line 6

def enrich(log_event)
  log_event.add_property_if_absent(thread_id: ::Thread.current.object_id)
end