tcell_agent 2.4.0 → 2.4.1
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25d0645a954c7d9734f47e0875ea0a0b54dfb0ea232149598d30b0cd140e1e24
|
|
4
|
+
data.tar.gz: 6ce5ffaeca3eb0155a71e6c6b5c4f8e0ead856d144eca78abd9a3da98d70485c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2785f69dd34c4259316337702d544aafbe9a58b075e23dac1466f8e83c277fb862acab62ab9cc836204c0fdeb03bbda40139e4f26daeed90adbb28792803472a
|
|
7
|
+
data.tar.gz: 417607890f0639d1bebca01dc006f12f1485a9a90d7606847e0e18ebda2ce613138727bb04eabaf725f8c80799d1fc18bbfe1598d65e3e1b5555f65396e514a6
|
|
@@ -6,6 +6,11 @@ require 'tcell_agent/sensor_events/server_agent'
|
|
|
6
6
|
module TCellAgent
|
|
7
7
|
module Instrumentation
|
|
8
8
|
module Rails
|
|
9
|
+
def self.framework_details
|
|
10
|
+
{ 'app_framework' => 'Rails',
|
|
11
|
+
'app_framework_version' => ::Rails.version }
|
|
12
|
+
end
|
|
13
|
+
|
|
9
14
|
def self.send_settings
|
|
10
15
|
TCellAgent::Instrumentation.safe_block('Reporting Rails settings') do
|
|
11
16
|
rails_config = ::Rails.application.config
|
|
@@ -26,10 +26,16 @@ module TCellAgent
|
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def set_agent_details
|
|
29
|
+
framework_details = if defined?(Rails)
|
|
30
|
+
TCellAgent::Instrumentation::Rails.framework_details
|
|
31
|
+
else
|
|
32
|
+
{}
|
|
33
|
+
end
|
|
34
|
+
|
|
29
35
|
self['agent_details'] = { 'language' => 'Ruby',
|
|
30
36
|
'language_version' => RUBY_VERSION,
|
|
31
|
-
'app_framework' => '
|
|
32
|
-
'app_framework_version' =>
|
|
37
|
+
'app_framework' => framework_details['app_framework'],
|
|
38
|
+
'app_framework_version' => framework_details['app_framework_version'] }
|
|
33
39
|
end
|
|
34
40
|
end
|
|
35
41
|
|
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: 2.4.
|
|
4
|
+
version: 2.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rapid7, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-07-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|