solarwinds_apm 5.1.4 → 5.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +2 -2
- data/ext/oboe_metal/extconf.rb +1 -2
- data/ext/oboe_metal/extconf_local.rb +1 -1
- data/ext/oboe_metal/lib/liboboe-1.0-aarch64.so.sha256 +1 -0
- data/ext/oboe_metal/lib/liboboe-1.0-alpine-aarch64.so.sha256 +1 -0
- data/ext/oboe_metal/lib/liboboe-1.0-alpine-x86_64.so.sha256 +1 -0
- data/ext/oboe_metal/lib/liboboe-1.0-x86_64.so.sha256 +1 -0
- data/ext/oboe_metal/src/VERSION +1 -1
- data/ext/oboe_metal/src/oboe.h +2 -2
- data/ext/oboe_metal/src/oboe_api.cpp +4 -0
- data/lib/rails/generators/solarwinds_apm/install_generator.rb +2 -2
- data/lib/rails/generators/solarwinds_apm/templates/solarwinds_apm_initializer.rb +8 -6
- data/lib/solarwinds_apm/inst/curb.rb +1 -0
- data/lib/solarwinds_apm/inst/httpclient.rb +1 -0
- data/lib/solarwinds_apm/inst/redis.rb +1 -1
- data/lib/solarwinds_apm/inst/typhoeus.rb +1 -1
- data/lib/solarwinds_apm/util.rb +18 -0
- data/lib/solarwinds_apm/version.rb +1 -1
- data/solarwinds_apm.gemspec +4 -4
- metadata +6 -6
- data/ext/oboe_metal/lib/liboboe-1.0-aarch64.so.0.0.0.sha256 +0 -1
- data/ext/oboe_metal/lib/liboboe-1.0-alpine-aarch64.so.0.0.0.sha256 +0 -1
- data/ext/oboe_metal/lib/liboboe-1.0-alpine-x86_64.so.0.0.0.sha256 +0 -1
- data/ext/oboe_metal/lib/liboboe-1.0-x86_64.so.0.0.0.sha256 +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8298bf959acf2663351b05afeb78ffa573c02107f9588bbc925a990e35675e4d
|
4
|
+
data.tar.gz: a67822c4554525b9894cdb578b48cf51de562ecd1b5ba353ed58f037ed88daf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9998cc5ed8152951dcfbe0a997ac952b89a32eb7fcbcfe3b3cf51a87231606d0471eddfa9d5a14be58780904681776a99b99abfa5dfbd4159d791d8ddaea556c
|
7
|
+
data.tar.gz: 661af15bb3b3a14a361f7e4f95b3367c2fbb459b19b9b7c1894480f9f85050c68fca6ce7029ed9cb7bb7fce82d8cd593c746989311ed8d68fbd4ba2c4a687c3e
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,19 @@ https://github.com/solarwindscloud/solarwinds-apm-ruby/releases
|
|
3
3
|
|
4
4
|
Dates in this file are in the format MM/DD/YYYY.
|
5
5
|
|
6
|
+
# solarwinds_apm 5.1.6 (03/14/2023)
|
7
|
+
|
8
|
+
This release includes the following features:
|
9
|
+
|
10
|
+
* Update latest liboboe library (12.0.0)
|
11
|
+
* Remove centos as testing environments and include amazonlinux as alternatives of RHEL distro
|
12
|
+
* Include sanitize RemoteURL for kvs (p.s. RemoteHost is sanitized in library code)
|
13
|
+
|
14
|
+
Pushed to Rubygems:
|
15
|
+
|
16
|
+
https://rubygems.org/gems/solarwinds_apm/versions/5.1.5
|
17
|
+
|
18
|
+
|
6
19
|
# solarwinds_apm 5.1.4 (11/23/2022)
|
7
20
|
|
8
21
|
This release includes the following features:
|
data/README.md
CHANGED
@@ -11,9 +11,9 @@ It requires an [Solarwinds] account to view metrics. Get yours,
|
|
11
11
|
|
12
12
|
[![Gem Version](https://badge.fury.io/rb/solarwinds_apm.svg)](https://badge.fury.io/rb/solarwinds_apm)
|
13
13
|
|
14
|
-
[![Run
|
14
|
+
[![Run All Tests](https://github.com/solarwindscloud/solarwinds-apm-ruby/actions/workflows/test_on_4_linux.yml/badge.svg)](https://github.com/solarwindscloud/solarwinds-apm-ruby/actions/workflows/test_on_4_linux.yml)
|
15
15
|
|
16
|
-
[![C++ Tests](https://github.com/
|
16
|
+
[![C++ Tests](https://github.com/solarwindscloud/solarwinds-apm-ruby/actions/workflows/run_cpluplus_tests.yml/badge.svg)](https://github.com/solarwindscloud/solarwinds-apm-ruby/actions/workflows/run_cpluplus_tests.yml)
|
17
17
|
|
18
18
|
[comment]: <> ([![Maintainability](https://api.codeclimate.com/v1/badges/ac7f36241a23a3a82fc5/maintainability)](https://codeclimate.com/github/appoptics/appoptics-apm-ruby/maintainability))
|
19
19
|
|
data/ext/oboe_metal/extconf.rb
CHANGED
@@ -58,8 +58,7 @@ if File.exist?('/etc/alpine-release')
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
-
ao_clib = "liboboe-1.0-#{ao_arch}.so
|
62
|
-
ao_clib = "liboboe-1.0-#{ao_arch}.so" if ENV['OBOE_DEV'].to_s.downcase == 'true' # for dev build only
|
61
|
+
ao_clib = "liboboe-1.0-#{ao_arch}.so"
|
63
62
|
ao_item = File.join(ao_path, ao_clib)
|
64
63
|
ao_checksum_file = File.join(ao_lib_dir, "#{ao_clib}.sha256")
|
65
64
|
clib = File.join(ao_lib_dir, ao_clib)
|
@@ -24,7 +24,7 @@ ext_dir = File.expand_path(File.dirname(__FILE__))
|
|
24
24
|
# the SolarWindsAPM libs.
|
25
25
|
ao_lib_dir = File.join(ext_dir, 'lib')
|
26
26
|
ao_path = '../../../oboe/factory-output'
|
27
|
-
ao_clib = "liboboe-1.0-x86_64.so
|
27
|
+
ao_clib = "liboboe-1.0-x86_64.so"
|
28
28
|
ao_item = File.join(ao_path, ao_clib)
|
29
29
|
clib = File.join(ao_lib_dir, ao_clib)
|
30
30
|
|
@@ -0,0 +1 @@
|
|
1
|
+
d9c280de4ab597fe7d3405a405c07f7e27ae4fb2cba7502f3893335bff119c3b
|
@@ -0,0 +1 @@
|
|
1
|
+
7864bee37bcaeacef1c3ffae2db3ae2d163ef18ebb107fe11228122211e6ddb4
|
@@ -0,0 +1 @@
|
|
1
|
+
48849897b168cde0de01b3c1355d0343e687cbec075f5970d88f166bd5182045
|
@@ -0,0 +1 @@
|
|
1
|
+
139fd6c84d20b5f4b12931a0ecf6630b8b0cae14792d05000c29b8d35aa7332c
|
data/ext/oboe_metal/src/VERSION
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
1
|
+
12.0.0
|
2
2
|
|
data/ext/oboe_metal/src/oboe.h
CHANGED
@@ -750,7 +750,7 @@ int oboe_sample_is_enabled(oboe_settings_cfg_t *cfg);
|
|
750
750
|
int oboe_tracing_decisions(oboe_tracing_decisions_in_t *in, oboe_tracing_decisions_out_t *out);
|
751
751
|
|
752
752
|
/* Oboe configuration interface. */
|
753
|
-
|
753
|
+
#ifndef _WIN32
|
754
754
|
/**
|
755
755
|
* Check if the Oboe library is compatible with a given version.revision.
|
756
756
|
*
|
@@ -762,7 +762,7 @@ int oboe_tracing_decisions(oboe_tracing_decisions_in_t *in, oboe_tracing_decisio
|
|
762
762
|
* @return Non-zero if the Oboe library is considered compatible with the specified revision.
|
763
763
|
*/
|
764
764
|
extern int oboe_config_check_version(int version, int revision);
|
765
|
-
|
765
|
+
#endif
|
766
766
|
/**
|
767
767
|
* Get the Oboe library version number.
|
768
768
|
*
|
@@ -694,7 +694,11 @@ std::string Reporter::getType() {
|
|
694
694
|
/////// Config ///////
|
695
695
|
|
696
696
|
bool Config::checkVersion(int version, int revision) {
|
697
|
+
#ifndef _WIN32
|
697
698
|
return (oboe_config_check_version(version, revision) != 0);
|
699
|
+
#else
|
700
|
+
return true;
|
701
|
+
#endif
|
698
702
|
}
|
699
703
|
|
700
704
|
std::string Config::getVersionString() {
|
@@ -29,10 +29,10 @@ module SolarWindsAPM
|
|
29
29
|
say "-------------------"
|
30
30
|
say ""
|
31
31
|
say "SolarWindsAPM Installation Overview:"
|
32
|
-
say "https://documentation.solarwinds.com/en/success_center/
|
32
|
+
say "https://documentation.solarwinds.com/en/success_center/observability"
|
33
33
|
say ""
|
34
34
|
say "More information on instrumenting Ruby applications can be found here:"
|
35
|
-
say "https://documentation.solarwinds.com/en/success_center/
|
35
|
+
say "https://documentation.solarwinds.com/en/success_center/observability/default.htm#cshid=config-ruby-agent"
|
36
36
|
end
|
37
37
|
# rubocop:enable Metrics/MethodLength
|
38
38
|
|
@@ -3,11 +3,11 @@
|
|
3
3
|
# Copyright (c) 2019 SolarWinds, LLC.
|
4
4
|
# All rights reserved.
|
5
5
|
|
6
|
-
# SolarWindsAPM Configuration for the Ruby
|
6
|
+
# SolarWindsAPM Configuration for the Ruby Library aka solarwinds_apm gem
|
7
7
|
# https://cloud.solarwinds.com/
|
8
8
|
#
|
9
|
-
# More information on configuring the Ruby
|
10
|
-
# https://documentation.solarwinds.com/en/success_center/
|
9
|
+
# More information on configuring the Ruby Library can be found here:
|
10
|
+
# https://documentation.solarwinds.com/en/success_center/observability/default.htm#cshid=config-ruby-agent
|
11
11
|
#
|
12
12
|
# The initial settings in this file represent the defaults
|
13
13
|
|
@@ -46,9 +46,11 @@ if defined?(SolarWindsAPM::Config)
|
|
46
46
|
# to SolarWinds is still encrypted using SSL/TLS.
|
47
47
|
#
|
48
48
|
# It is recommended to configure the proxy in this file or as SW_APM_PROXY
|
49
|
-
# environment variable. However, the
|
50
|
-
# use a system-wide proxy defined in the environment
|
51
|
-
# https_proxy or http_proxy if no SolarWindsAPM-specific
|
49
|
+
# environment variable. However, the underlying network library for the Ruby
|
50
|
+
# Instrumentation Library will use a system-wide proxy defined in the environment
|
51
|
+
# variables grpc_proxy, https_proxy or http_proxy if no SolarWindsAPM-specific
|
52
|
+
# configuration is set.
|
53
|
+
#
|
52
54
|
# Please refer to gRPC environment variables for more information.
|
53
55
|
#
|
54
56
|
# SolarWindsAPM::Config[:http_proxy] = http://<proxyHost>:<proxyPort>
|
@@ -274,7 +274,7 @@ end
|
|
274
274
|
|
275
275
|
if SolarWindsAPM::Config[:redis][:enabled]
|
276
276
|
if defined?(::RedisClient)
|
277
|
-
SolarWindsAPM.logger.info "[solarwinds_apm/loading] Instrumenting redis #{
|
277
|
+
SolarWindsAPM.logger.info "[solarwinds_apm/loading] Instrumenting redis through RedisClient #{RedisClient::VERSION}" if SolarWindsAPM::Config[:verbose]
|
278
278
|
::RedisClient.register(SolarWindsAPM::Inst::Redis::Client)
|
279
279
|
end
|
280
280
|
end
|
@@ -37,7 +37,7 @@ module SolarWindsAPM
|
|
37
37
|
# Conditionally log query params
|
38
38
|
uri = URI(response.effective_url)
|
39
39
|
kvs[:RemoteURL] = SolarWindsAPM::Config[:typhoeus][:log_args] ? uri.to_s : uri.to_s.split('?').first
|
40
|
-
|
40
|
+
kvs[:RemoteURL] = SolarWindsAPM::Util.sanitize_uri(kvs[:RemoteURL])
|
41
41
|
response
|
42
42
|
rescue => e
|
43
43
|
SolarWindsAPM::API.log_exception(:typhoeus, e)
|
data/lib/solarwinds_apm/util.rb
CHANGED
@@ -113,6 +113,24 @@ module SolarWindsAPM
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
##
|
117
|
+
# sanitize
|
118
|
+
#
|
119
|
+
# Remove the potential username and password from the uri user provided for reporting
|
120
|
+
def sanitize_uri(uri)
|
121
|
+
return uri if uri.nil?
|
122
|
+
begin
|
123
|
+
parsed_uri = URI.parse(uri)
|
124
|
+
parsed_uri.user = nil
|
125
|
+
sanitized_uri = parsed_uri.to_s
|
126
|
+
rescue StandardError => e
|
127
|
+
sanitized_uri = uri
|
128
|
+
SolarWindsAPM.logger.debug "[solarwinds_apm/debug] SolarWindsAPM::Util.sanitize_uri: could not sanitize #{uri}; caused by #{e.message}."
|
129
|
+
end
|
130
|
+
sanitized_uri
|
131
|
+
end
|
132
|
+
|
133
|
+
|
116
134
|
##
|
117
135
|
# upcase
|
118
136
|
#
|
@@ -8,7 +8,7 @@ module SolarWindsAPM
|
|
8
8
|
module Version
|
9
9
|
MAJOR = 5 # breaking,
|
10
10
|
MINOR = 1 # feature,
|
11
|
-
PATCH =
|
11
|
+
PATCH = 6 # fix => BFF
|
12
12
|
PRE = nil # for pre-releases into packagecloud, set to nil for production releases into rubygems
|
13
13
|
|
14
14
|
STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
|
data/solarwinds_apm.gemspec
CHANGED
@@ -33,10 +33,10 @@ Automatic tracing and metrics for Ruby applications. Get started at cloud.solarw
|
|
33
33
|
'ext/oboe_metal/src/bson/bson.h',
|
34
34
|
'ext/oboe_metal/src/bson/platform_hacks.h',
|
35
35
|
'ext/oboe_metal/src/VERSION',
|
36
|
-
'ext/oboe_metal/lib/liboboe-1.0-alpine-x86_64.so.
|
37
|
-
'ext/oboe_metal/lib/liboboe-1.0-x86_64.so.
|
38
|
-
'ext/oboe_metal/lib/liboboe-1.0-aarch64.so.
|
39
|
-
'ext/oboe_metal/lib/liboboe-1.0-alpine-aarch64.so.
|
36
|
+
'ext/oboe_metal/lib/liboboe-1.0-alpine-x86_64.so.sha256',
|
37
|
+
'ext/oboe_metal/lib/liboboe-1.0-x86_64.so.sha256',
|
38
|
+
'ext/oboe_metal/lib/liboboe-1.0-aarch64.so.sha256',
|
39
|
+
'ext/oboe_metal/lib/liboboe-1.0-alpine-aarch64.so.sha256'
|
40
40
|
]
|
41
41
|
s.files += ['lib/solarwinds_apm/cert/star.appoptics.com.issuer.crt']
|
42
42
|
s.files -= ['build_gem.sh',
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solarwinds_apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maia Engeli
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2023-
|
14
|
+
date: 2023-03-17 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json
|
@@ -77,10 +77,10 @@ files:
|
|
77
77
|
- ext/oboe_metal/extconf.rb
|
78
78
|
- ext/oboe_metal/extconf_local.rb
|
79
79
|
- ext/oboe_metal/lib/.keep
|
80
|
-
- ext/oboe_metal/lib/liboboe-1.0-aarch64.so.
|
81
|
-
- ext/oboe_metal/lib/liboboe-1.0-alpine-aarch64.so.
|
82
|
-
- ext/oboe_metal/lib/liboboe-1.0-alpine-x86_64.so.
|
83
|
-
- ext/oboe_metal/lib/liboboe-1.0-x86_64.so.
|
80
|
+
- ext/oboe_metal/lib/liboboe-1.0-aarch64.so.sha256
|
81
|
+
- ext/oboe_metal/lib/liboboe-1.0-alpine-aarch64.so.sha256
|
82
|
+
- ext/oboe_metal/lib/liboboe-1.0-alpine-x86_64.so.sha256
|
83
|
+
- ext/oboe_metal/lib/liboboe-1.0-x86_64.so.sha256
|
84
84
|
- ext/oboe_metal/noop/noop.c
|
85
85
|
- ext/oboe_metal/src/README.md
|
86
86
|
- ext/oboe_metal/src/VERSION
|
@@ -1 +0,0 @@
|
|
1
|
-
ae491260c3b2dfbb2ada97de0c94e78424b2eb5bf19b2b752c25301057270c30
|
@@ -1 +0,0 @@
|
|
1
|
-
a1f5406931ce82b0297bbb1b2b22b151c544e47babc43f0116274f95002ce85e
|
@@ -1 +0,0 @@
|
|
1
|
-
ede3fcc827faba4d6cf09d2dd59a41325c462c9093994c2c2df202ae57416733
|
@@ -1 +0,0 @@
|
|
1
|
-
079abfef35a869c3469908a62b97ad6f0f98f85a6f79e3c60265b251dc07dac3
|