oboe 2.2.5 → 2.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/joboe_metal.rb CHANGED
@@ -99,8 +99,8 @@ module Oboe
99
99
  # Assure defaults since SWIG enforces Strings
100
100
  opts[:layer] ||= ''
101
101
  opts[:xtrace] ||= ''
102
- opts['TV-Meta'] ||= ''
103
- Java::ComTracelyticsJoboeSettingsReader.shouldTraceRequest(opts[:layer], opts[:xtrace], opts['TV-Meta'])
102
+ opts['X-TV-Meta'] ||= ''
103
+ Java::ComTracelyticsJoboeSettingsReader.shouldTraceRequest(opts[:layer], opts[:xtrace], opts['X-TV-Meta'])
104
104
  end
105
105
 
106
106
  def self.through?
@@ -28,13 +28,20 @@ module Oboe
28
28
  report_kvs['AJAX'] = true if req.xhr?
29
29
  report_kvs['ClientIP'] = req.ip
30
30
 
31
- report_kvs['TV-Meta'] = env['HTTP_X_TV_META'] if env.has_key?('HTTP_X_TV_META')
31
+ report_kvs['X-TV-Meta'] = env['HTTP_X_TV_META'] if env.has_key?('HTTP_X_TV_META')
32
+
33
+ # Report any request queue'ing headers. Report as 'Request-Start' or the summed Queue-Time
34
+ report_kvs['Request-Start'] = env['HTTP_X_REQUEST_START'] if env.has_key?('HTTP_X_REQUEST_START')
35
+ report_kvs['Request-Start'] = env['HTTP_X_QUEUE_START'] if env.has_key?('HTTP_X_QUEUE_START')
36
+ report_kvs['Queue-Time'] = env['HTTP_X_QUEUE_TIME'] if env.has_key?('HTTP_X_QUEUE_TIME')
37
+
32
38
  report_kvs['Forwarded-For'] = env['HTTP_X_FORWARDED_FOR'] if env.has_key?('HTTP_X_FORWARDED_FOR')
33
39
  report_kvs['Forwarded-Host'] = env['HTTP_X_FORWARDED_HOST'] if env.has_key?('HTTP_X_FORWARDED_HOST')
34
40
  report_kvs['Forwarded-Proto'] = env['HTTP_X_FORWARDED_PROTO'] if env.has_key?('HTTP_X_FORWARDED_PROTO')
35
41
  report_kvs['Forwarded-Port'] = env['HTTP_X_FORWARDED_PORT'] if env.has_key?('HTTP_X_FORWARDED_PORT')
36
- rescue
37
- # Discard any potential exceptions. Report whatever we can.
42
+ rescue Exception => e
43
+ # Discard any potential exceptions. Debug log and report whatever we can.
44
+ Oboe.logger.debug "[oboe/debug] Rack KV collection error: #{e.inspect}"
38
45
  end
39
46
 
40
47
  result, xtrace = Oboe::API.start_trace('rack', xtrace, report_kvs) do
data/lib/oboe/version.rb CHANGED
@@ -2,7 +2,7 @@ module Oboe
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 2
5
- PATCH = 5
5
+ PATCH = 6
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
data/lib/oboe_metal.rb CHANGED
@@ -69,8 +69,8 @@ module Oboe
69
69
  # Assure defaults since SWIG enforces Strings
70
70
  opts[:layer] ||= ''
71
71
  opts[:xtrace] ||= ''
72
- opts['TV-Meta'] ||= ''
73
- Oboe::Context.sampleRequest(opts[:layer], opts[:xtrace], opts['TV-Meta'])
72
+ opts['X-TV-Meta'] ||= ''
73
+ Oboe::Context.sampleRequest(opts[:layer], opts[:xtrace], opts['X-TV-Meta'])
74
74
  end
75
75
 
76
76
  def through?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oboe
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 5
10
- version: 2.2.5
9
+ - 6
10
+ version: 2.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tracelytics, Inc.
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-09-24 00:00:00 Z
18
+ date: 2013-09-27 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake