oboe 2.7.5.wolf1-java → 2.7.5.wolf3-java
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 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21ef3aaf49fd7a6be58f349ebf3ba5785e32d90e
|
4
|
+
data.tar.gz: e14ecad62dd37b010d8dc21adcf4427002d401e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59779d2f87d69001fc598a71883592a0bf9c2efe3d8213523e790a8b53cf78fed661aaafe2bfe6d12f5f8c41b274658456b739e9cee70c34be7b67da9b67f6f7
|
7
|
+
data.tar.gz: 761227562eb375eed7b463b13a0c19c7dab8172d867f969d006f923e42fa0730384dcb038cc09a6ab3bc4f19d119e8ced812555da5b13fabea1fc0cbf5daf0fa
|
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: java
|
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
|