application_insights 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODhmYmI4Y2ExYTdmNTAyOGY3MDAyNGM3NDI0N2ViMmM0NmMzYTkzNg==
4
+ YmMxYzA0NzMxMzA2MThlYTIzMWViZTE1N2JjZWIxMDkwNmNiODRlZQ==
5
5
  data.tar.gz: !binary |-
6
- NjY2MmVkYzcwYzFmZjYzYzMyZjYzZmIwMTBjOTliZjBlNzc2NGUyZA==
6
+ MWJkMjg1NGIxN2MzMDY5YTRmM2QwYjU5MzlkMmYwN2Y2MWZlODQ4Yw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YTc3NGQyNDM1N2I4MjNkYmUxOTRlMTNhNDdkNWU0MGY1ZjZlMDNhZDQ5NmFi
10
- MGQ4MmViMGE0YzU1MTRmMjI5M2Q2NmE0YTcyNmNmMjRjNTQzNWY2ZWFkNGE4
11
- MTlhNGMwMDBkYTc1NjczN2I0YWViOTQyNWRjZjRiM2QwM2I1ZDc=
9
+ ZTA2MWJiY2E1ZmU2MzkyNTUyNzY2MmZmYTQwYmI4YzcyZDQyYzU4ZDg2NWE4
10
+ Yjg5ZTcwNzY0ZmFiNGI2YjZlMzRlY2JmNTQ2MGUxNmYwMWYwNTA4NDViYjFj
11
+ MWZlMDdkYzk1MDFmNzIyZWQyN2M0NDFjNjFlNWJhOWYzZjBhZDU=
12
12
  data.tar.gz: !binary |-
13
- YTYyMGU4MzkxYjUwZTljM2Y3ZGYxZGI1MTUxZGI0ZDc3OGI4YTMyNDQyNTBl
14
- NTIxMDM4YTc0ZWM0ODU5ZmE3MWQ0ZDI4ODEzZDAzMmVlYTlhOGFmMGNmYmQy
15
- YzRkNjg0OTM0MGYyYzYzNGM1MDMyYjMwNzE5ODZmYjgyMmM4M2I=
13
+ NGRlMzIzMzBlNDkyZmE4MzRlMWI5YTgxOGJkOWUyN2UyMDUyYTMwNzQwOGE4
14
+ NmQzMjQyZDAwOTEyODA2NjNhODkzYWY5YmMwNGE0Zjc5MDQ5NTFhOWM1MjE3
15
+ YzIyMGU5ZDVjMWNlMWVmZmYxMmVhYzExM2YxZThmMTY5NjAyMTM=
data/README.md CHANGED
@@ -135,3 +135,13 @@ require 'application_insights'
135
135
  ApplicationInsights::UnhandledException.collect('<YOUR INSTRUMENTATION KEY GOES HERE>')
136
136
  # raise an exception and this would be send to Application Insights Service
137
137
  raise Exception, 'Boom!'
138
+ ```
139
+
140
+ ###Collecting requests for rack applications###
141
+ ```ruby
142
+ # set up the TrackRequest middleware in the rackup (config.ru) file
143
+ require 'application_insights'
144
+ use ApplicationInsights::Rack::TrackRequest, '<YOUR INSTRUMENTATION KEY GOES HERE>', <buffer size>
145
+ # For rails, suggest to set up this middleware in application.rb so that unhandled exceptions from controllers are also collected
146
+ config.middleware.use 'ApplicationInsights::Rack::TrackRequest', '<YOUR INSTRUMENTATION KEY GOES HERE>', <buffer size>
147
+ ```
@@ -1,5 +1,6 @@
1
1
  require 'json'
2
2
  require 'net/http'
3
+ require 'openssl'
3
4
  require 'stringio'
4
5
  require 'zlib'
5
6
 
@@ -1,3 +1,3 @@
1
1
  module ApplicationInsights
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: application_insights
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-10 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler