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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3beaf0fdfd2e981df546c71cd4a327a5448c730d
4
- data.tar.gz: 35885d335b9a1b25183f44489247759dad1be927
3
+ metadata.gz: f5427f0bc7cf869364aa07ec582633d0f653a2f6
4
+ data.tar.gz: bead1a11c86b6c6f31624b6adeb59dacb8a8d065
5
5
  SHA512:
6
- metadata.gz: 3a6c75e8f5b6cba14d28f1ad18766cf4fc0a061fddd8d3ff586d8d84f2893beca177830c567c3a3921dcaf96c90971095fade5bee82a84f77b5050411e7691fd
7
- data.tar.gz: f27d9e690055fac51907fce0331af8ee8faabcd3fe80f37b2473f6da285f5f81f366050d5da44da34ec4e6d3a51a1ca681972caa8ae7fdcdff683a1e114564a3
6
+ metadata.gz: 15eeaa666f1479ec04f69e3dcae6a2d6ccc2ec911f8c0570244f69209e8e7eafbe1894f01463102e63480ad6bbec9f2642e2e4ec45ef409d0fa1d5f9992079b6
7
+ data.tar.gz: b759d55b685bad1dd86eb8b05abd85a2ca68cdd36dbc573a5979acc2abf034d911dd69f1e62a8c70c90b1142d4687a04f294ff18a56ea52f9e112c873f633399
@@ -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
@@ -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: 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-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
@@ -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: