Class: Logsy::Store

Inherits:
ActiveSupport::CurrentAttributes
  • Object
show all
Defined in:
lib/logsy/store.rb

Overview

Internal per-request / per-job key-value store. Backed by ActiveSupport::CurrentAttributes so it is fiber-local and gets reset automatically by the Rails executor between requests.

Consumers should not access this class directly — use ‘Logsy`, `Logsy = value`, `Logsy.tags`, and `Logsy.reset` instead.

Instance Method Summary collapse

Instance Method Details

#tagsObject



16
17
18
# File 'lib/logsy/store.rb', line 16

def tags
  super || (self.tags = {})
end