elastic-apm 2.6.0 → 2.6.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.
Potentially problematic release.
This version of elastic-apm might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/elastic_apm/config.rb +10 -4
- data/lib/elastic_apm/metrics.rb +2 -0
- data/lib/elastic_apm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f64eb5692ec903ccffcb881d4c7de8a725171d5d85d231b00ef3031dd8972768
|
4
|
+
data.tar.gz: 437ad5c85f6d56cae467c816b6916159a9dd406dcdfd9c7baa4bed4125b62132
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1def6a88dd72516323da5f9c65a3941679d14e9a8c95b6688f29127c0c155db25dae65bd2574a822114e52f55ea201bb9df0f791476b40f2f86e513dc4cd90ab
|
7
|
+
data.tar.gz: 5e7b21bbf7f688da977b48b3bcdf1ccaf4d585ec2546214eda20ef158f460175d79cd67adfe8a9705e9946dab226ac1924dad780e0a1f645fd21ab6e5b47999c
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## 2.6.1
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- Setting `config_file` via `ELASTIC_APM_CONFIG_FILE` ([#363(https://github.com/elastic/apm-agent-ruby/pull/363))
|
12
|
+
- Stopping the Metrics collector when it is disabled ([#357](https://github.com/elastic/apm-agent-ruby/pull/357))
|
13
|
+
- HTTP proxy settings can now be set by ENV variable ([#367](https://github.com/elastic/apm-agent-ruby/pull/367))
|
14
|
+
|
7
15
|
## 2.6.0 (2019-03-19)
|
8
16
|
|
9
17
|
### Deprecated
|
data/lib/elastic_apm/config.rb
CHANGED
@@ -41,7 +41,7 @@ module ElasticAPM
|
|
41
41
|
instrumented_rake_tasks: [],
|
42
42
|
log_level: Logger::INFO,
|
43
43
|
log_path: nil,
|
44
|
-
metrics_interval:
|
44
|
+
metrics_interval: '30s',
|
45
45
|
pool_size: 1,
|
46
46
|
source_lines_error_app_frames: 5,
|
47
47
|
source_lines_error_library_frames: 0,
|
@@ -67,6 +67,7 @@ module ElasticAPM
|
|
67
67
|
'ELASTIC_APM_CAPTURE_BODY' => 'capture_body',
|
68
68
|
'ELASTIC_APM_CAPTURE_HEADERS' => [:bool, 'capture_headers'],
|
69
69
|
'ELASTIC_APM_CAPTURE_ENV' => [:bool, 'capture_env'],
|
70
|
+
'ELASTIC_APM_CONFIG_FILE' => 'config_file',
|
70
71
|
'ELASTIC_APM_CUSTOM_KEY_FILTERS' => [:list, 'custom_key_filters'],
|
71
72
|
'ELASTIC_APM_DEFAULT_TAGS' => [:dict, 'default_tags'],
|
72
73
|
'ELASTIC_APM_DISABLED_SPIES' => [:list, 'disabled_spies'],
|
@@ -81,7 +82,12 @@ module ElasticAPM
|
|
81
82
|
[:list, 'instrumented_rake_tasks'],
|
82
83
|
'ELASTIC_APM_LOG_LEVEL' => [:int, 'log_level'],
|
83
84
|
'ELASTIC_APM_LOG_PATH' => 'log_path',
|
84
|
-
'ELASTIC_APM_METRICS_INTERVAL' =>
|
85
|
+
'ELASTIC_APM_METRICS_INTERVAL' => 'metrics_interval',
|
86
|
+
'ELASTIC_APM_PROXY_ADDRESS' => 'proxy_address',
|
87
|
+
'ELASTIC_APM_PROXY_HEADERS' => [:dict, 'proxy_headers'],
|
88
|
+
'ELASTIC_APM_PROXY_PASSWORD' => 'proxy_password',
|
89
|
+
'ELASTIC_APM_PROXY_PORT' => [:int, 'proxy_port'],
|
90
|
+
'ELASTIC_APM_PROXY_USERNAME' => 'proxy_username',
|
85
91
|
'ELASTIC_APM_POOL_SIZE' => [:int, 'pool_size'],
|
86
92
|
'ELASTIC_APM_SERVER_CA_CERT' => 'server_ca_cert',
|
87
93
|
'ELASTIC_APM_SERVICE_NAME' => 'service_name',
|
@@ -300,7 +306,7 @@ module ElasticAPM
|
|
300
306
|
end
|
301
307
|
|
302
308
|
def collect_metrics?
|
303
|
-
metrics_interval
|
309
|
+
metrics_interval > 0
|
304
310
|
end
|
305
311
|
|
306
312
|
# rubocop:disable Metrics/MethodLength
|
@@ -354,7 +360,7 @@ module ElasticAPM
|
|
354
360
|
when :float then value.to_f
|
355
361
|
when :bool then !%w[0 false].include?(value.strip.downcase)
|
356
362
|
when :list then value.split(/[ ,]/)
|
357
|
-
when :dict then Hash[value.split(
|
363
|
+
when :dict then Hash[value.split(/[&,]/).map { |kv| kv.split('=') }]
|
358
364
|
else value
|
359
365
|
end
|
360
366
|
|
data/lib/elastic_apm/metrics.rb
CHANGED
data/lib/elastic_apm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic-apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikkel Malmberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|