# frozen_string_literal: true require "minato/stackdriver/version" require "minato/stackdriver/railtie" 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) end end end