oboe 2.6.3.0 → 2.6.4.1

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: 849242c14c945d9a5687e47d042729a919a29589
4
- data.tar.gz: 3b21c37c48ea8b1813d9268b2c0acc10de8b4a34
3
+ metadata.gz: bb3169ea3038b6293a945efb858b06d37de67546
4
+ data.tar.gz: d1ea231c855de19561bf20a7fe6fc468ac26c990
5
5
  SHA512:
6
- metadata.gz: cc0243bcd66501f11e95eae0401b94721881e29baabf218286a5f78b440db4426b20a8e4ea3c0b91aac3bd46452b5943c25a7d841f1a0d44e7351451793cff0c
7
- data.tar.gz: 5ccdaa4436264e9d2775909dfc4d9a8fca1dae95ba98e112339061df7e6c6342653796110a02508237bc50d70ad26991dc6ced62e952306f68f4dcaebba7b59a
6
+ metadata.gz: 2ca6ed914c0622b9aae98bf859500b7a08cd012c67f63b493914c2bdd1bc8663082aa75635efbde97aa966f3f39deb1b9c290169544b8ecf0547243e1c939a63
7
+ data.tar.gz: 97db5fa26ea2233bb9da5723ff4675874d8590868dd7a2e22e8aa3339fe9d4da066662c1ef679a1c1f122f36d73ea62ede976c5d3214c0d0fca185e03034a3a0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # oboe 2.6.4.1 (04/30/14)
2
+
3
+ This patch release adds detection and support for Redhat [OpenShift](https://www.openshift.com/). See our OpenShift [TraceView cartridge](https://github.com/appneta/openshift-cartridge-traceview) for base libraries before using this gem on OpenShift.
4
+
5
+ # oboe 2.6.3.0 (04/07/14)
6
+
7
+ This patch releases fixes a number of smaller issues:
8
+
9
+ * the gem will no longer start traces on static assets (https://github.com/appneta/oboe-ruby/pull/31)
10
+ * fix occasionally broken `profile_name` values when using [custom method tracing](https://github.com/appneta/oboe-ruby#tracing-methods)
11
+ * fix for incorrectly starting traces when in `through` tracing mode under certain circumstances
12
+ * Expand the test suite to validate sample rates and tracing modes (https://github.com/appneta/oboe-ruby/pull/8)
1
13
 
2
14
  # oboe 2.6.2.0 (03/24/14)
3
15
 
@@ -12,7 +12,21 @@ else
12
12
  jruby = false
13
13
  end
14
14
 
15
- dir_config('oboe')
15
+ openshift = ENV.has_key?('OPENSHIFT_TRACEVIEW_DIR')
16
+
17
+ # When on OpenShift, set the mkmf lib paths so we have no issues linking to
18
+ # the TraceView libs.
19
+ if openshift
20
+ tv_lib64 = "#{ENV['OPENSHIFT_TRACEVIEW_DIR']}usr/lib64"
21
+ tv_tlyzer = "#{ENV['OPENSHIFT_TRACEVIEW_DIR']}usr/lib64/tracelyzer"
22
+
23
+ idefault = "#{ENV['OPENSHIFT_TRACEVIEW_DIR']}usr/include"
24
+ ldefault = "#{tv_lib64}:#{tv_tlyzer}"
25
+
26
+ dir_config('oboe', idefault, ldefault)
27
+ else
28
+ dir_config('oboe')
29
+ end
16
30
 
17
31
  if jruby or ENV.has_key?('TRACEVIEW_URL')
18
32
  # Build the noop extension under JRuby and Heroku.
@@ -30,6 +44,11 @@ elsif have_library('oboe', 'oboe_config_get_revision', 'oboe/oboe.h')
30
44
  $CPPFLAGS << " #{ENV["CPPFLAGS"]}"
31
45
  $LIBS << " #{ENV["LIBS"]}"
32
46
 
47
+ # On OpenShift user rpath to point out the TraceView libraries
48
+ if openshift
49
+ $LDFLAGS << " #{ENV["LDFLAGS"]} -Wl,-rpath=#{tv_lib64},--rpath=#{tv_tlyzer}"
50
+ end
51
+
33
52
  if RUBY_VERSION < '1.9'
34
53
  cpp_command('g++')
35
54
  $CPPFLAGS << "-I./src/"
data/lib/oboe/config.rb CHANGED
@@ -65,9 +65,18 @@ module Oboe
65
65
  # avoid collecting and reporting query literals to TraceView.
66
66
  @@config[:sanitize_sql] = false
67
67
 
68
- # The default configuration
69
- @@config[:tracing_mode] = "through"
70
- @@config[:reporter_host] = "127.0.0.1"
68
+ if ENV.has_key?('OPENSHIFT_TRACEVIEW_TLYZER_IP')
69
+ # We're running on OpenShift
70
+ @@config[:tracing_mode] = "always"
71
+ @@config[:reporter_host] = ENV['OPENSHIFT_TRACEVIEW_TLYZER_IP']
72
+ @@config[:reporter_port] = ENV['OPENSHIFT_TRACEVIEW_TLYZER_PORT']
73
+ else
74
+ # The default configuration
75
+ @@config[:tracing_mode] = "through"
76
+ @@config[:reporter_host] = "127.0.0.1"
77
+ @@config[:reporter_port] = "7831"
78
+ end
79
+
71
80
  @@config[:verbose] = false
72
81
  end
73
82
 
data/lib/oboe/version.rb CHANGED
@@ -5,8 +5,8 @@ module Oboe
5
5
  module Version
6
6
  MAJOR = 2
7
7
  MINOR = 6
8
- PATCH = 3
9
- BUILD = 0
8
+ PATCH = 4
9
+ BUILD = 1
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
12
12
  end
data/lib/oboe_metal.rb CHANGED
@@ -51,7 +51,7 @@ module Oboe_metal
51
51
  if ENV['RACK_ENV'] == "test"
52
52
  Oboe.reporter = Oboe::FileReporter.new("/tmp/trace_output.bson")
53
53
  else
54
- Oboe.reporter = Oboe::UdpReporter.new(Oboe::Config[:reporter_host])
54
+ Oboe.reporter = Oboe::UdpReporter.new(Oboe::Config[:reporter_host], Oboe::Config[:reporter_port])
55
55
  end
56
56
 
57
57
  # Only report __Init from here if we are not instrumenting a framework.
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.6.3.0
4
+ version: 2.6.4.1
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-04-07 00:00:00.000000000 Z
12
+ date: 2014-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake