lib/minato/trace.rb in minato-trace-0.1.7 vs lib/minato/trace.rb in minato-trace-0.2.0

- old
+ new

@@ -12,11 +12,11 @@ module Trace BLACKLIST_PATHS = ["/health/alive", "/health/ready"].freeze def self.init(app) if Minato::Trace.enabled? - Minato::Trace.configure_loggging(app) + Minato::Trace.configure_loggging Minato::Trace.configure_trace end app end @@ -30,16 +30,12 @@ config.use_trace = true config.trace.sampler = Google::Cloud::Trace::TimeSampler.new(path_blacklist: BLACKLIST_PATHS.dup) end end - def self.configure_loggging(app) + def self.configure_loggging Google::Cloud.configure do |config| config.use_logging = false - end - - app.configure do - config.minato_logger.middleware.use Minato::Trace::Middleware::IntegrateWithCloudLogging end end def self.skip_trace?(trace) BLACKLIST_PATHS.any? { |path| trace.name.start_with?(path) }