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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b6feae15cd8088b6791d3a9bbd0c8bd24b928fc
4
- data.tar.gz: edc309ac1f8393c96e0bb9621b8d9d9dc759defa
3
+ metadata.gz: 21ef3aaf49fd7a6be58f349ebf3ba5785e32d90e
4
+ data.tar.gz: e14ecad62dd37b010d8dc21adcf4427002d401e0
5
5
  SHA512:
6
- metadata.gz: f84879fa15a8a8319c1c116f7a5530744d14d0f61dda6e93b8fec50317f4b585ef758815d4e986f35822eb7d596937651fdfa4cf4b03d07a1de21d85db166969
7
- data.tar.gz: 60065de5f383d1d7c66636770912aa4202a0b97020a6f9303c2150887dc88b0dd43a28a2caec9a293e76bb0021eadf8a85b9a2d3dabceb7034400fab775cce0c
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
- # Import the tracing mode and sample rate settings
61
- # from the Java agent (user configured in
62
- # /usr/local/tracelytics/javaagent.json when under JRuby)
63
- cfg = LayerUtil.getLocalSampleRate(nil, nil)
64
-
65
- if cfg.hasSampleStartFlag
66
- Oboe::Config.tracing_mode = 'always'
67
- elsif cfg.hasSampleThroughFlag
68
- Oboe::Config.tracing_mode = 'through'
69
- else
70
- Oboe::Config.tracing_mode = 'never'
71
- end
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
- Oboe.sample_rate = cfg.sampleRate
74
- Oboe::Config.sample_rate = cfg.sampleRate
75
- Oboe::Config.sample_source = cfg.sampleRateSource.a
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
- Oboe.sample_rate = sr_cfg.sampleRate
151
- Oboe.sample_source = sr_cfg.sampleRateSource.a
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
@@ -9,7 +9,7 @@ module Oboe
9
9
  MAJOR = 2
10
10
  MINOR = 7
11
11
  PATCH = 5
12
- BUILD = "wolf1"
12
+ BUILD = "wolf3"
13
13
 
14
14
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
15
15
  end
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.wolf1
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-17 00:00:00.000000000 Z
12
+ date: 2014-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json