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 +4 -4
- data/lib/minato/stackdriver/railtie.rb +3 -4
- data/lib/minato/stackdriver/version.rb +1 -1
- data/lib/minato/stackdriver.rb +7 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb79a2a57e649891beb276d827106826788a56e0b437eea0836e07c4ef6e3738
|
4
|
+
data.tar.gz: 939d3a399f3bf16e0a848afd4c547b09dedd150b213354dd5d33c796b8c9b7d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
8
|
-
|
9
|
-
|
10
|
-
end
|
7
|
+
before: "load_environment_config" do
|
8
|
+
Minato::Stackdriver.init
|
9
|
+
end
|
11
10
|
end
|
12
11
|
end
|
13
12
|
end
|
data/lib/minato/stackdriver.rb
CHANGED
@@ -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
|
11
|
-
|
12
|
-
|
13
|
-
|
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.
|
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-
|
11
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|