tcell_agent 1.1.0 → 1.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74132ece6948e81f9fe0248a468cd7960d6c9110
|
4
|
+
data.tar.gz: 8e5ad2b42f058606a3f9b7c229558774ff48446c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c020e01c22b325491ada88aad0f9daf7a189d0b99c73411a4786e7be4906e5e3e22ecff6923a602299a1d4519fe1fe62e96af2a424f6060ac77ea5eb3d3e9f3
|
7
|
+
data.tar.gz: 5d38e93bdbc65afd39742f7076b58de537e33ea809b4ff0e90e41f3c086782c26930566a41ab13a1912dc4dde38ce2d9890adea9946a5ab8a8b22da322c2db33
|
data/bin/tcell_agent
CHANGED
@@ -34,6 +34,10 @@ module TCellAgent
|
|
34
34
|
request = Rack::Request.new(env)
|
35
35
|
env[TCellAgent::Instrumentation::TCELL_ID].uri = request.url
|
36
36
|
env[TCellAgent::Instrumentation::TCELL_ID].fullpath = request.fullpath
|
37
|
+
env[TCellAgent::Instrumentation::TCELL_ID].path = request.path
|
38
|
+
env[TCellAgent::Instrumentation::TCELL_ID].user_agent = request.user_agent
|
39
|
+
env[TCellAgent::Instrumentation::TCELL_ID].referrer = request.referrer
|
40
|
+
env[TCellAgent::Instrumentation::TCELL_ID].ip_address = TCellAgent::Utils::Rails.better_ip(request)
|
37
41
|
if request.request_method
|
38
42
|
env[TCellAgent::Instrumentation::TCELL_ID].request_method = request.request_method
|
39
43
|
end
|
@@ -36,19 +36,12 @@ module TCellAgent
|
|
36
36
|
end
|
37
37
|
}
|
38
38
|
|
39
|
-
TCellAgent::Instrumentation.safe_block("Setting hmac_session_id")
|
39
|
+
TCellAgent::Instrumentation.safe_block("Setting hmac_session_id") do
|
40
40
|
if request.env[TCellAgent::Instrumentation::TCELL_ID].session_id
|
41
41
|
env[TCellAgent::Instrumentation::TCELL_ID].hmac_session_id =
|
42
42
|
TCellAgent::SensorEvents::Util.hmac(request.env[TCellAgent::Instrumentation::TCELL_ID].session_id)
|
43
43
|
end
|
44
|
-
|
45
|
-
|
46
|
-
TCellAgent::Instrumentation.safe_block("Setting and ip address user agent") {
|
47
|
-
env[TCellAgent::Instrumentation::TCELL_ID].ip_address = TCellAgent::Utils::Rails.better_ip(request)
|
48
|
-
env[TCellAgent::Instrumentation::TCELL_ID].user_agent = request.user_agent
|
49
|
-
env[TCellAgent::Instrumentation::TCELL_ID].path = request.path
|
50
|
-
env[TCellAgent::Instrumentation::TCELL_ID].referrer = request.referrer
|
51
|
-
}
|
44
|
+
end
|
52
45
|
end
|
53
46
|
|
54
47
|
response = @app.call(env)
|
@@ -36,6 +36,10 @@ module TCellAgent
|
|
36
36
|
meta_event.request_content_bytes_len = (request.content_length || 0).to_i
|
37
37
|
meta_event.response_content_bytes_len = response_content_length
|
38
38
|
|
39
|
+
# use uri stored in tcell_context because
|
40
|
+
# rails modifies original request.url
|
41
|
+
# to always return /404 (or whatever error code
|
42
|
+
# it encountered)
|
39
43
|
meta_event.location = tcell_context.uri
|
40
44
|
meta_event.path = tcell_context.path
|
41
45
|
|
data/lib/tcell_agent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tcell_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|