Method: Loggerator::RequestStore.seed
- Defined in:
- lib/loggerator/request_store.rb
.seed(env) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/loggerator/request_store.rb', line 8 def seed(env) store[:request_id] = env["REQUEST_IDS"] ? env["REQUEST_IDS"].join(",") : nil # a global context that evolves over the lifetime of the request, and is # used to tag all log messages that it produces store[:request_context] = { request_id: store[:request_id] } end |