Skip to content

Commit

Permalink
expose pitchfork worker in env
Browse files Browse the repository at this point in the history
which is helpful for logging for example worker.nr in app error handling
  • Loading branch information
ollym authored Jan 10, 2024
1 parent fc30ba1 commit e7c3330
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pitchfork/http_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ def process_client(client, worker, timeout_handler)

proc_name status: "requests: #{worker.requests_count}, processing: #{env["PATH_INFO"]}"

env["pitchfork.worker"] = worker
timeout_handler.rack_env = env
env["pitchfork.timeout"] = timeout_handler

Expand Down

0 comments on commit e7c3330

Please sign in to comment.