use Travis::Metrics.setup
This commit is contained in:
parent
1e89e9fdcd
commit
48664d6263
|
@ -185,16 +185,7 @@ module Travis::Api
|
||||||
|
|
||||||
Travis::LogSubscriber::ActiveRecordMetrics.attach
|
Travis::LogSubscriber::ActiveRecordMetrics.attach
|
||||||
Travis::Notification.setup(instrumentation: false)
|
Travis::Notification.setup(instrumentation: false)
|
||||||
|
Travis::Metrics.setup
|
||||||
# Travis::Metrics.setup from sf-te, does this conflict with the setup below?
|
|
||||||
|
|
||||||
if Travis.config.librato
|
|
||||||
email, token, source = Travis.config.librato.email,
|
|
||||||
Travis.config.librato.token,
|
|
||||||
Travis.config.librato_source
|
|
||||||
on_error = proc {|ex| puts "librato error: #{ex.message} (#{ex.response.body})"}
|
|
||||||
Metriks::LibratoMetricsReporter.new(email, token, source: source, on_error: on_error).start
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.load_endpoints
|
def self.load_endpoints
|
||||||
|
|
Loading…
Reference in New Issue
Block a user