Sha256: d0717d95a994f0f90b56f8571a1a52637f9e0ce43c1ee8ef1442ab85ef387435

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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