module

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
Source
header_name(key : Symbol) : String
Source
restore(headers : AMQ::Protocol::Table | Nil) : Hash(Symbol, String)
Source
with_restored(headers : AMQ::Protocol::Table | Nil, &)
Source