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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35e5b9fc732eef1bea6278908dc6a579aff7c970da01a13ec1b69759db729e7f
4
- data.tar.gz: 675285811e330721194acb1057c72caa4fe3df5a370272d092f80a23cc59b4a0
3
+ metadata.gz: bb79a2a57e649891beb276d827106826788a56e0b437eea0836e07c4ef6e3738
4
+ data.tar.gz: 939d3a399f3bf16e0a848afd4c547b09dedd150b213354dd5d33c796b8c9b7d6
5
5
  SHA512:
6
- metadata.gz: 51cbf2d0a086d0fc0723fdbdd5f7e96a7bc4de7a6ade987312ee2130b62e1b994a5af38be9483ebd18050fb91c0c14cc9f839b09024fa7dbb23a1acf9c5b13c4
7
- data.tar.gz: 3012d935e6a0b75c6f886dbc989c4aad12151bb3bd72d0b2231618a306a408e6ac0a074b28e7646cf54262ad67b3e4ed970a70248270b9caf190b5d4694b26b6
6
+ metadata.gz: f1a8ab4c9c02d0f548c5b33a9cf01896d7b06328cb598ec51787e9b5417ab733909c19ae1ebf036f8bca08b5b613abfd0932c97c645112e9190da918e27a8571
7
+ data.tar.gz: f48593fa0a0e53f4866064b2e8077305d861b67709779dc4270fb282a514e2ce0dd9099624c45b097851c9f8849e076110417ef23a1e36f2ee059ec15e8f3678
@@ -3,8 +3,9 @@
3
3
  module Minato
4
4
  module Stackdriver
5
5
  class Railtie < ::Rails::Railtie
6
- config.before_configuration do |app|
7
- Minato::Stackdriver.init(app)
6
+ initializer "minato_stackdriver_setup",
7
+ before: "load_environment_config" do
8
+ Minato::Stackdriver.init
8
9
  end
9
10
  end
10
11
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Minato
4
4
  module Stackdriver
5
- VERSION = "0.1.0-3"
5
+ VERSION = "0.1.0-4"
6
6
  end
7
7
  end
@@ -8,10 +8,12 @@ module Minato
8
8
  module Stackdriver
9
9
  BLACKLIST_PATHS = ["/health/alive", "/health/ready"].freeze
10
10
 
11
- def self.init(app)
12
- app.config.google_cloud.use_logging = false
13
- app.config.google_cloud.use_trace = true
14
- 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
15
17
  end
16
18
  end
17
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minato-stackdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.3
4
+ version: 0.1.0.pre.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ferreri