Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Remove pid from metric source name"

This produced bad data in Librato Metrics.
  • Loading branch information...
commit 7bb7b054c98a7d9feea1119aad7ef5ef857d8c93 1 parent 50b229c
@lmarburger lmarburger authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/bundler_api/metriks.rb
View
3  lib/bundler_api/metriks.rb
@@ -16,8 +16,9 @@
Socket.gethostname
end
+ source = [ app_name, Process.pid ].join(':')
on_error = ->(e) do STDOUT.puts("LibratoMetrics: #{ e.message }") end
- opts = { on_error: on_error, source: app_name }
+ opts = { on_error: on_error, source: source }
opts[:prefix] = prefix if prefix && !prefix.empty?
Metriks::Reporter::LibratoMetrics.new(user, token, opts).start
Please sign in to comment.
Something went wrong with that request. Please try again.