minato-stackdriver 0.1.0.pre.2 → 0.1.0.pre.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd026f924b97db4035c0790dfb0752da4b6a5aa298d7004296e73b6acebae6b3
4
- data.tar.gz: 2e3c8f0441c35f53272933d47b9bcfcd7a7652cbf8b7de6d22fbb6698c1fcdb4
3
+ metadata.gz: bb79a2a57e649891beb276d827106826788a56e0b437eea0836e07c4ef6e3738
4
+ data.tar.gz: 939d3a399f3bf16e0a848afd4c547b09dedd150b213354dd5d33c796b8c9b7d6
5
5
  SHA512:
6
- metadata.gz: 7a611b6eaaca453bc49367ac4138f669721ea5ccfda58938825120d8227212de738a5f8c2a72e5b66418b2388b1a073d4f13b2ab6d54de48bdf440879b272be9
7
- data.tar.gz: 0f7dc5c3e4d6c80e60d4db42c235556821fe374dca0adef149d694093963c4da3b8682ca3b759fe5ac75593d11fc16c960de832f172fa58d5d4872ac62e68200
6
+ metadata.gz: f1a8ab4c9c02d0f548c5b33a9cf01896d7b06328cb598ec51787e9b5417ab733909c19ae1ebf036f8bca08b5b613abfd0932c97c645112e9190da918e27a8571
7
+ data.tar.gz: f48593fa0a0e53f4866064b2e8077305d861b67709779dc4270fb282a514e2ce0dd9099624c45b097851c9f8849e076110417ef23a1e36f2ee059ec15e8f3678
@@ -4,10 +4,9 @@ module Minato
4
4
  module Stackdriver
5
5
  class Railtie < ::Rails::Railtie
6
6
  initializer "minato_stackdriver_setup",
7
- before: "load_environment_config" do |app|
8
- require "stackdriver"
9
- Minato::Stackdriver.init(app)
10
- end
7
+ before: "load_environment_config" do
8
+ Minato::Stackdriver.init
9
+ end
11
10
  end
12
11
  end
13
12
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Minato
4
4
  module Stackdriver
5
- VERSION = "0.1.0-2"
5
+ VERSION = "0.1.0-4"
6
6
  end
7
7
  end
@@ -2,15 +2,18 @@
2
2
 
3
3
  require "minato/stackdriver/version"
4
4
  require "minato/stackdriver/railtie"
5
+ require "stackdriver"
5
6
 
6
7
  module Minato
7
8
  module Stackdriver
8
9
  BLACKLIST_PATHS = ["/health/alive", "/health/ready"].freeze
9
10
 
10
- def self.init(app)
11
- app.config.google_cloud.use_logging = false
12
- app.config.google_cloud.use_trace = true
13
- app.config.google_cloud.trace_sampler = Google::Cloud::Trace::TimeSampler.new(path_blacklist: BLACKLIST_PATHS.dup)
11
+ def self.init
12
+ Google::Cloud.configure do |config|
13
+ config.use_logging = false
14
+ config.use_trace = true
15
+ config.trace.sampler = Google::Cloud::Trace::TimeSampler.new(path_blacklist: BLACKLIST_PATHS.dup)
16
+ end
14
17
  end
15
18
  end
16
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minato-stackdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.2
4
+ version: 0.1.0.pre.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ferreri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-24 00:00:00.000000000 Z
11
+ date: 2024-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails