TJLavin::LogContext
Moves the configured Log.context keys across the queue: into AMQP
headers when a job is enqueued, and back into Log.context when the
runner picks the message up.
Constants
HEADER_PREFIX = "x-tjlavin-log-"
Class methods
capture
Sourceheader_name(key : Symbol) : String
Sourcerestore(headers : AMQ::Protocol::Table | Nil) : Hash(Symbol, String)
Sourcewith_restored(headers : AMQ::Protocol::Table | Nil, &)
Source