Rename wip to worker_id

This commit is contained in:
Pawel Chojnacki 2017-11-23 23:10:38 +01:00
parent ad185e623b
commit 0ae2d9e68d
1 changed files with 3 additions and 3 deletions

View File

@ -12,11 +12,11 @@ Prometheus::Client.configure do |config|
end
config.pid_provider = -> do
wid = Prometheus::Client::Support::Unicorn.worker_id
if wid.nil?
worker_id = Prometheus::Client::Support::Unicorn.worker_id
if worker_id.nil?
"process_pid_#{Process.pid}"
else
"worker_id_#{wid}"
"worker_id_#{worker_id}"
end
end
end