Sha256: 0c4588d97a4b17346d73349b5811d6ae052fd7f00c0196db501feb64cc6ef0cf
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true # Rack middleware that adds basic request metadata to all log lines. module Loggery module Metadata module Middleware class Rack def initialize(app) @app = app end def call(env) Loggery::Metadata::Store.with_metadata(worker_type: "web", request_id: env["action_dispatch.request_id"]) do @app.call(env) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loggery-0.1.0 | lib/loggery/metadata/middleware/rack.rb |