lib/minato/stackdriver.rb in minato-stackdriver-0.1.0.pre.3 vs lib/minato/stackdriver.rb in minato-stackdriver-0.1.0.pre.4

- old
+ new

@@ -6,12 +6,14 @@ module Minato module Stackdriver BLACKLIST_PATHS = ["/health/alive", "/health/ready"].freeze - def self.init(app) - app.config.google_cloud.use_logging = false - app.config.google_cloud.use_trace = true - app.config.google_cloud.trace_sampler = Google::Cloud::Trace::TimeSampler.new(path_blacklist: BLACKLIST_PATHS.dup) + def self.init + Google::Cloud.configure do |config| + config.use_logging = false + config.use_trace = true + config.trace.sampler = Google::Cloud::Trace::TimeSampler.new(path_blacklist: BLACKLIST_PATHS.dup) + end end end end