appoptics_apm 4.12.1 → 4.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/bug-or-feature-request.md +16 -0
- data/.gitignore +11 -5
- data/.travis.yml +7 -3
- data/LICENSE +202 -193
- data/README.md +4 -2
- data/appoptics_apm.gemspec +4 -3
- data/ext/oboe_metal/README.md +2 -2
- data/ext/oboe_metal/extconf.rb +40 -11
- data/ext/oboe_metal/src/VERSION +1 -1
- data/ext/oboe_metal/src/init_appoptics_apm.cc +20 -0
- data/lib/appoptics_apm.rb +1 -1
- data/lib/appoptics_apm/api/metrics.rb +4 -1
- data/lib/appoptics_apm/frameworks/rails/inst/action_view.rb +64 -21
- data/lib/appoptics_apm/inst/http.rb +67 -59
- data/lib/appoptics_apm/oboe_init_options.rb +17 -3
- data/lib/appoptics_apm/support/transaction_settings.rb +1 -1
- data/lib/appoptics_apm/test.rb +1 -2
- data/lib/appoptics_apm/util.rb +4 -3
- data/lib/appoptics_apm/version.rb +4 -3
- data/lib/rails/generators/appoptics_apm/templates/appoptics_apm_initializer.rb +26 -1
- metadata +15 -14
@@ -55,7 +55,7 @@ module AppOpticsAPM
|
|
55
55
|
args << options.timestamp
|
56
56
|
end
|
57
57
|
|
58
|
-
metrics, sample, @rate, @source, @type, @auth, @status_msg, @auth_msg, @status =
|
58
|
+
metrics, sample, @rate, @source, @bucket_rate, @bucket_cap, @type, @auth, @status_msg, @auth_msg, @status =
|
59
59
|
AppOpticsAPM::Context.getDecisions(*args)
|
60
60
|
|
61
61
|
if @status > AO_TRACING_DECISIONS_OK
|
data/lib/appoptics_apm/test.rb
CHANGED
@@ -54,13 +54,12 @@ module AppOpticsAPM
|
|
54
54
|
if ENV.key?('TRAVIS_PSQL_PASS')
|
55
55
|
ENV['DATABASE_URL'] = "postgresql://postgres:#{ENV['TRAVIS_PSQL_PASS']}@127.0.0.1:5432/travis_ci_test"
|
56
56
|
elsif ENV.key?('POSTGRES_USER')
|
57
|
-
ENV['DATABASE_URL'] = "postgresql://#{ENV['POSTGRES_USER']}@#{ENV['PSQL_HOST']}:5432/travis_ci_test"
|
57
|
+
ENV['DATABASE_URL'] = "postgresql://#{ENV['POSTGRES_PASSWORD']}:#{ENV['POSTGRES_USER']}@#{ENV['PSQL_HOST']}:5432/travis_ci_test"
|
58
58
|
# ENV['DATABASE_URL'] = "postgresql://postgres@#{ENV['PSQL_HOST']}:5432/travis_ci_test"
|
59
59
|
else
|
60
60
|
ENV['DATABASE_URL'] = 'postgresql://postgres@127.0.0.1:5432/travis_ci_test'
|
61
61
|
end
|
62
62
|
end
|
63
|
-
|
64
63
|
##
|
65
64
|
# set_mysql_env
|
66
65
|
#
|
data/lib/appoptics_apm/util.rb
CHANGED
@@ -271,12 +271,13 @@ module AppOpticsAPM
|
|
271
271
|
platform_info['Force'] = true
|
272
272
|
platform_info['Ruby.Platform.Version'] = RUBY_PLATFORM
|
273
273
|
platform_info['Ruby.Version'] = RUBY_VERSION
|
274
|
-
platform_info['Ruby.AppOptics.Version']
|
274
|
+
platform_info['Ruby.AppOptics.Version'] = AppOpticsAPM::Version::STRING
|
275
275
|
|
276
|
+
# oboe not loaded yet, can't use oboe_api function to read oboe VERSION
|
276
277
|
clib_version_file = File.join(Gem::Specification.find_by_name('appoptics_apm').gem_dir, 'ext', 'oboe_metal', 'src', 'VERSION')
|
277
|
-
platform_info['Ruby.
|
278
|
+
platform_info['Ruby.AppOpticsExtension.Version'] = File.read(clib_version_file).chomp
|
278
279
|
platform_info['RubyHeroku.AppOpticsAPM.Version'] = AppOpticsAPMHeroku::Version::STRING if defined?(AppOpticsAPMHeroku)
|
279
|
-
platform_info['Ruby.TraceMode.Version']
|
280
|
+
platform_info['Ruby.TraceMode.Version'] = AppOpticsAPM::Config[:tracing_mode]
|
280
281
|
|
281
282
|
# Collect up the loaded gems
|
282
283
|
if defined?(Gem) && Gem.respond_to?(:loaded_specs)
|
@@ -6,10 +6,11 @@ module AppOpticsAPM
|
|
6
6
|
# The current version of the gem. Used mainly by
|
7
7
|
# appoptics_apm.gemspec during gem build process
|
8
8
|
module Version
|
9
|
-
MAJOR = 4
|
9
|
+
MAJOR = 4 # breaking,
|
10
10
|
MINOR = 12 # feature,
|
11
|
-
PATCH =
|
11
|
+
PATCH = 2 # fix => BFF
|
12
|
+
PRE = nil
|
12
13
|
|
13
|
-
STRING = [MAJOR, MINOR, PATCH].compact.join('.')
|
14
|
+
STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
|
14
15
|
end
|
15
16
|
end
|
@@ -10,7 +10,9 @@
|
|
10
10
|
|
11
11
|
if defined?(AppOpticsAPM::Config)
|
12
12
|
|
13
|
-
# :service_key, :hostname_alias, and :debug_level
|
13
|
+
# :service_key, :hostname_alias, :http_proxy, and :debug_level
|
14
|
+
# are startup settings and can't be changed afterwards.
|
15
|
+
|
14
16
|
#
|
15
17
|
# Set APPOPTICS_SERVICE_KEY
|
16
18
|
# This setting will be overridden if APPOPTICS_SERVICE_KEY is set as an environment variable.
|
@@ -27,6 +29,28 @@ if defined?(AppOpticsAPM::Config)
|
|
27
29
|
#
|
28
30
|
# AppOpticsAPM::Config[:hostname_alias] = 'alias_name'
|
29
31
|
|
32
|
+
#
|
33
|
+
# Set Proxy for AppOptics
|
34
|
+
# This setting will be overridden if APPOPTICS_PROXY is set as an environment variable.
|
35
|
+
#
|
36
|
+
# Please configure http_proxy if a proxy needs to be used to communicate with
|
37
|
+
# the AppOptics backend.
|
38
|
+
# The format should either be http://<proxyHost>:<proxyPort> for a proxy
|
39
|
+
# server that does not require authentication, or
|
40
|
+
# http://<username>:<password>@<proxyHost>:<proxyPort> for a proxy server that
|
41
|
+
# requires basic authentication.
|
42
|
+
#
|
43
|
+
# Note that while HTTP is the only type of connection supported, the traffic
|
44
|
+
# to AppOptics is still encrypted using SSL/TLS.
|
45
|
+
#
|
46
|
+
# It is recommended to configure the proxy in this file or as APPOPTICS_PROXY
|
47
|
+
# environment variable. However, the agent's underlying network library will
|
48
|
+
# use a system-wide proxy defined in the environment variables grpc_proxy,
|
49
|
+
# https_proxy or http_proxy if no AppOptics-specific configuration is set.
|
50
|
+
# Please refer to gRPC environment variables for more information.
|
51
|
+
#
|
52
|
+
# AppOpticsAPM::Config[:http_proxy] = http://<proxyHost>:<proxyPort>
|
53
|
+
|
30
54
|
#
|
31
55
|
# Set APPOPTICS_DEBUG_LEVEL
|
32
56
|
# This setting will be overridden if APPOPTICS_DEBUG_LEVEL is set as an environment variable.
|
@@ -36,6 +60,7 @@ if defined?(AppOpticsAPM::Config)
|
|
36
60
|
# Values out of range (< -1 or > 6) are ignored and the log level is set to the default (info).
|
37
61
|
#
|
38
62
|
AppOpticsAPM::Config[:debug_level] = 3
|
63
|
+
|
39
64
|
#
|
40
65
|
# :debug_level will be used in the c-extension of the gem and also mapped to the
|
41
66
|
# Ruby logger as DISABLED, FATAL, ERROR, WARN, INFO, or DEBUG
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appoptics_apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.12.
|
4
|
+
version: 4.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maia Engeli
|
8
8
|
- Peter Giacomo Lombardo
|
9
9
|
- Spiros Eliopoulos
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-03-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -30,20 +30,20 @@ dependencies:
|
|
30
30
|
name: no_proxy_fix
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - "
|
33
|
+
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: 0.1.2
|
36
|
-
- - "
|
36
|
+
- - "~>"
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: 0.1.2
|
39
39
|
type: :runtime
|
40
40
|
prerelease: false
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
42
|
requirements:
|
43
|
-
- - "
|
43
|
+
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: 0.1.2
|
46
|
-
- - "
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 0.1.2
|
49
49
|
description: 'Automatic tracing and metrics for Ruby applications. Get started at
|
@@ -80,10 +80,12 @@ files:
|
|
80
80
|
- ext/oboe_metal/src/VERSION
|
81
81
|
- ext/oboe_metal/src/bson/bson.h
|
82
82
|
- ext/oboe_metal/src/bson/platform_hacks.h
|
83
|
+
- ext/oboe_metal/src/init_appoptics_apm.cc
|
83
84
|
- ext/oboe_metal/src/oboe.h
|
84
|
-
- ext/oboe_metal/src/
|
85
|
+
- ext/oboe_metal/src/oboe_api.cpp
|
86
|
+
- ext/oboe_metal/src/oboe_api.hpp
|
85
87
|
- ext/oboe_metal/src/oboe_debug.h
|
86
|
-
- ext/oboe_metal/src/
|
88
|
+
- ext/oboe_metal/src/oboe_swig_wrap.cc
|
87
89
|
- init.rb
|
88
90
|
- lib/appoptics_apm.rb
|
89
91
|
- lib/appoptics_apm/api.rb
|
@@ -171,13 +173,13 @@ files:
|
|
171
173
|
- yardoc_frontpage.md
|
172
174
|
homepage: https://www.appoptics.com/
|
173
175
|
licenses:
|
174
|
-
-
|
176
|
+
- Apache-2.0
|
175
177
|
metadata:
|
176
178
|
changelog_uri: https://github.com/appoptics/appoptics-apm-ruby/releases
|
177
179
|
documentation_uri: https://docs.appoptics.com/kb/apm_tracing/ruby/
|
178
180
|
homepage_uri: https://www.appoptics.com/
|
179
181
|
source_code_uri: https://github.com/appoptics/appoptics-apm-ruby
|
180
|
-
post_install_message:
|
182
|
+
post_install_message:
|
181
183
|
rdoc_options: []
|
182
184
|
require_paths:
|
183
185
|
- lib
|
@@ -192,9 +194,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
194
|
- !ruby/object:Gem::Version
|
193
195
|
version: '0'
|
194
196
|
requirements: []
|
195
|
-
|
196
|
-
|
197
|
-
signing_key:
|
197
|
+
rubygems_version: 3.0.3
|
198
|
+
signing_key:
|
198
199
|
specification_version: 4
|
199
200
|
summary: AppOptics APM performance instrumentation gem for Ruby
|
200
201
|
test_files: []
|