Sha256: c50dd9047635933cb2a14fa5824504b3b988f2c67ebfbd5e157eb4ae0bb0793a
Contents?: true
Size: 457 Bytes
Versions: 32
Compression:
Stored size: 457 Bytes
Contents
# To retrieve thread-global metadata that is used to enrich data that is sent # to logging and debugging tools. In addition to holding the data # thread-global, this will also attempt to update context of error reporting # tools etc. module Betterlog class GlobalMetadata include Tins::SexySingleton thread_local(:data) { {} } def add(data_hash) data = data_hash | data Notifiers.context(data_hash) self end end end
Version data entries
32 entries across 32 versions & 1 rubygems