oboe 2.7.5.wolf1 → 2.7.5.wolf3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/joboe_metal.rb +26 -17
- data/lib/oboe/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5427f0bc7cf869364aa07ec582633d0f653a2f6
|
4
|
+
data.tar.gz: bead1a11c86b6c6f31624b6adeb59dacb8a8d065
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15eeaa666f1479ec04f69e3dcae6a2d6ccc2ec911f8c0570244f69209e8e7eafbe1894f01463102e63480ad6bbec9f2642e2e4ec45ef409d0fa1d5f9992079b6
|
7
|
+
data.tar.gz: b759d55b685bad1dd86eb8b05abd85a2ca68cdd36dbc573a5979acc2abf034d911dd69f1e62a8c70c90b1142d4687a04f294ff18a56ea52f9e112c873f633399
|
data/lib/joboe_metal.rb
CHANGED
@@ -57,22 +57,27 @@ module Oboe_metal
|
|
57
57
|
end
|
58
58
|
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
60
|
+
begin
|
61
|
+
# Import the tracing mode and sample rate settings
|
62
|
+
# from the Java agent (user configured in
|
63
|
+
# /usr/local/tracelytics/javaagent.json when under JRuby)
|
64
|
+
cfg = LayerUtil.getLocalSampleRate(nil, nil)
|
65
|
+
|
66
|
+
if cfg.hasSampleStartFlag
|
67
|
+
Oboe::Config.tracing_mode = 'always'
|
68
|
+
elsif cfg.hasSampleThroughFlag
|
69
|
+
Oboe::Config.tracing_mode = 'through'
|
70
|
+
else
|
71
|
+
Oboe::Config.tracing_mode = 'never'
|
72
|
+
end
|
72
73
|
|
73
|
-
|
74
|
-
|
75
|
-
|
74
|
+
Oboe.sample_rate = cfg.sampleRate
|
75
|
+
Oboe::Config.sample_rate = cfg.sampleRate
|
76
|
+
Oboe::Config.sample_source = cfg.sampleRateSource.a
|
77
|
+
rescue => e
|
78
|
+
Oboe.logger.debug "[oboe/debug] Couldn't retrieve/acces joboe sampleRateCfg"
|
79
|
+
Oboe.logger.debug "[oboe/debug] #{e.message}"
|
80
|
+
end
|
76
81
|
|
77
82
|
# Only report __Init from here if we are not instrumenting a framework.
|
78
83
|
# Otherwise, frameworks will handle reporting __Init after full initialization
|
@@ -147,8 +152,12 @@ module Oboe
|
|
147
152
|
|
148
153
|
# Store the returned SampleRateConfig into Oboe::Config
|
149
154
|
if sr_cfg
|
150
|
-
|
151
|
-
|
155
|
+
begin
|
156
|
+
Oboe.sample_rate = sr_cfg.sampleRate
|
157
|
+
Oboe.sample_source = sr_cfg.sampleRateSource.a
|
158
|
+
# If we fail here, we do so quietly. This was we don't spam logs
|
159
|
+
# on every request
|
160
|
+
end
|
152
161
|
end
|
153
162
|
|
154
163
|
sr_cfg
|
data/lib/oboe/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oboe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.5.
|
4
|
+
version: 2.7.5.wolf3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Giacomo Lombardo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -213,4 +213,3 @@ test_files:
|
|
213
213
|
- test/support/liboboe_settings_test.rb
|
214
214
|
- test/support/config_test.rb
|
215
215
|
- test/support/xtrace_test.rb
|
216
|
-
has_rdoc:
|