instana 0.11.0 → 0.12.0

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: 45d083c0409f57536ece61d39aad0bc07234f48f
4
- data.tar.gz: 55b44b71738b9821aa79538aa184129a7fc8da54
3
+ metadata.gz: 5ab824e1df01d94750009ebdc58e8994e1f0cd23
4
+ data.tar.gz: adf0ded7e5e26a950b4d53569d4944ea2af45759
5
5
  SHA512:
6
- metadata.gz: ebcf2e4efb164d9abc59d82e750354d3feaebd57658eb6c32dfe184a25f9c3cc7a8c976da2263a0d645c3c0b75a58af4d3d8d996b19ef0bc611426f4329f7c37
7
- data.tar.gz: c2c486f05c4c7ae075bde638f74089e594527063c11488f9ae4ac52ed3cff4d4f3e73bc71852c89f2a8d831415e88a8ec0d81b0c1aac7ea97f2c0846f2c1ddc2
6
+ metadata.gz: 64ca8aa49eda3202a5fc567f1c62640dd4db3fc7a214ca8ad39d947f675f4fe362fb2ae19c1d9419ffd6317e55ce96ed5bb951e2da2d6bca1fbbe518d633ffb5
7
+ data.tar.gz: 5200b271d946b337a5712113ed34a9f741b8774ac6679ff254d975ac0c1eeb0de5d49a30cd065253c13f4591b5e143a81dafb69f8b5c1908e73a70a033cc1fbe
data/Gemfile CHANGED
@@ -8,6 +8,12 @@ group :development, :test do
8
8
  gem 'rack-test'
9
9
  gem 'webmock'
10
10
 
11
+ # Frameworks
12
+ gem "sinatra", '1.4.7'
13
+ gem "cuba"
14
+ gem "roda"
15
+
16
+ # Webservers
11
17
  gem "puma"
12
18
 
13
19
  # Rack v2 dropped support for Ruby 2.2 and higher.
data/README.md CHANGED
@@ -93,7 +93,7 @@ Current components are `:gc`, `:memory` and `:thread`.
93
93
 
94
94
  ### Rack Middleware
95
95
 
96
- This gem will detect and automagically insert the Instana Rack middleware into the middleware stack when Ruby on Rails is present. We are currently adding support for more frameworks. If you are using a framework other than Ruby on Rails, you can insert the Instana Rack middleware with the following:
96
+ This gem will detect and automagically insert the Instana Rack middleware into the middleware stack when a [supported framework](https://instana.atlassian.net/wiki/display/DOCS/Ruby) is present. We are currently adding support for more frameworks. If you are using a yet to be instrumented framework, you can insert the Instana Rack middleware with the following:
97
97
 
98
98
  ```Ruby
99
99
  require "instana/rack"
@@ -0,0 +1,6 @@
1
+ require "instana/rack"
2
+
3
+ if defined?(::Cuba)
4
+ ::Instana.logger.warn "Instana: Instrumenting Cuba"
5
+ Cuba.use ::Instana::Rack
6
+ end
@@ -0,0 +1,6 @@
1
+ require "instana/rack"
2
+
3
+ if defined?(::Roda)
4
+ ::Instana.logger.warn "Instana: Instrumenting Roda"
5
+ Roda.use ::Instana::Rack
6
+ end
@@ -0,0 +1,9 @@
1
+ require "instana/rack"
2
+
3
+ # This instrumentation will insert Rack into Sinatra _and_ Padrino since
4
+ # the latter is based on Sinatra
5
+
6
+ if defined?(::Sinatra)
7
+ ::Instana.logger.warn "Instana: Instrumenting Sinatra"
8
+ ::Sinatra::Base.use ::Instana::Rack
9
+ end
@@ -43,7 +43,7 @@ Net::HTTP.class_eval {
43
43
  ::Instana.tracer.log_exit(:'net-http')
44
44
  end
45
45
 
46
- Instana.logger.info "Instrumenting net/http"
46
+ Instana.logger.info "Instana: Instrumenting net/http"
47
47
 
48
48
  alias request_without_instana request
49
49
  alias request request_with_instana
@@ -1,3 +1,3 @@
1
1
  module Instana
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Giacomo Lombardo
@@ -133,7 +133,10 @@ files:
133
133
  - lib/instana/collectors/memory.rb
134
134
  - lib/instana/collectors/thread.rb
135
135
  - lib/instana/config.rb
136
+ - lib/instana/frameworks/cuba.rb
136
137
  - lib/instana/frameworks/rails.rb
138
+ - lib/instana/frameworks/roda.rb
139
+ - lib/instana/frameworks/sinatra.rb
137
140
  - lib/instana/instrumentation.rb
138
141
  - lib/instana/instrumentation/net-http.rb
139
142
  - lib/instana/instrumentation/rack.rb