Skip to content

Commit 48664d6

Browse files
committed
use Travis::Metrics.setup
1 parent 1e89e9f commit 48664d6

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/travis/api/app.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,7 @@ def self.setup_monitoring
185185

186186
Travis::LogSubscriber::ActiveRecordMetrics.attach
187187
Travis::Notification.setup(instrumentation: false)
188-
189-
# Travis::Metrics.setup from sf-te, does this conflict with the setup below?
190-
191-
if Travis.config.librato
192-
email, token, source = Travis.config.librato.email,
193-
Travis.config.librato.token,
194-
Travis.config.librato_source
195-
on_error = proc {|ex| puts "librato error: #{ex.message} (#{ex.response.body})"}
196-
Metriks::LibratoMetricsReporter.new(email, token, source: source, on_error: on_error).start
197-
end
188+
Travis::Metrics.setup
198189
end
199190

200191
def self.load_endpoints

0 commit comments

Comments
 (0)