Sha256: 02d172bda4bcf7713056b920f90d3b83ac37dd7d81bd0b4ad9a1a19183200038

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

require "minato/stackdriver/version"
require "minato/stackdriver/railtie"
require "minato/stackdriver/middleware"
require "stackdriver"

module Minato
  module Stackdriver
    BLACKLIST_PATHS = ["/health/alive", "/health/ready"].freeze

    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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minato-stackdriver-0.1.0.pre.5 lib/minato/stackdriver.rb