profile_it 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0c57239d82093d83cd9eec7b49f9aef55b08fab
|
4
|
+
data.tar.gz: 26889eba7dc0fa567b319dcb871bb7c12e809649
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d398c2bce20310bb593360e15191aca28cf423c720e23ee06a0e0a63fa36d35255cb00afeac7576ffc3cecdd7625b03ed9fd0e48155d1b176f2c472473a0278
|
7
|
+
data.tar.gz: 830cdeba11bc771ac0ee43237795106f4ad2974fff554c4f8fb8fdc7b6346014ebebbfa4d92097de7fabd3675c57ed115b3a99ba42df2f9b12ef51170698c2e9
|
data/CHANGELOG.markdown
CHANGED
data/lib/profile_it.rb
CHANGED
@@ -7,6 +7,7 @@ require 'net/https'
|
|
7
7
|
require 'logger'
|
8
8
|
require 'yaml'
|
9
9
|
require 'cgi'
|
10
|
+
require 'securerandom'
|
10
11
|
require File.expand_path('../profile_it/version.rb', __FILE__)
|
11
12
|
require File.expand_path('../profile_it/agent.rb', __FILE__)
|
12
13
|
require File.expand_path('../profile_it/agent/logging.rb', __FILE__)
|
@@ -18,7 +18,12 @@ module ProfileIt::Instruments
|
|
18
18
|
key_from_headers = request.headers['x-profileit-key']
|
19
19
|
if !key_from_headers.blank? && key_from_headers == ProfileIt::Agent.instance.config.settings['key']
|
20
20
|
profile_it_controller_action = "Controller/#{controller_path}/#{action_name}"
|
21
|
-
|
21
|
+
Thread::current[:profile_it_extension_fingerprint]=request.headers['x-profileit-extension-fingerprint']
|
22
|
+
Thread::current[:profile_it_extension_version]=request.headers['x-profileit-extension-version']
|
23
|
+
Thread::current[:profile_it_user_id]=request.headers['x-profileit-user-id']
|
24
|
+
request_id = SecureRandom.hex(16) # since rails 2 doesn't set an x-request-id header, generate our own
|
25
|
+
response.headers['x-profileit-request-id'] = request_id
|
26
|
+
self.class.profile_request(profile_it_controller_action, :uri => request.request_uri, :request_id=>request_id) do
|
22
27
|
perform_action_without_profile_it_instruments(*args, &block)
|
23
28
|
end
|
24
29
|
else
|
data/lib/profile_it/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: profile_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Haynes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-20 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Profile a Ruby on Rails application in your browser and reports detailed
|
15
15
|
metrics to profileit.io.
|