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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 461871ffc956519fbd712017336bcc012f0c41d6b1696dc32a3117860b3b736d
4
- data.tar.gz: 468207605feaa4d888fbf1bfcd665c8f7bb0953d0b5c7e1e92d4f266c85855f6
3
+ metadata.gz: f64eb5692ec903ccffcb881d4c7de8a725171d5d85d231b00ef3031dd8972768
4
+ data.tar.gz: 437ad5c85f6d56cae467c816b6916159a9dd406dcdfd9c7baa4bed4125b62132
5
5
  SHA512:
6
- metadata.gz: b22550a4a59b6311e55a86306ab9c5af705f65754e7f7f0afa7509565724f68c4ada5781c17354bc724da181acc2158c45f8447297dea1ead99bdc20f74094a9
7
- data.tar.gz: 15b61ed7489a8468a56983c0e8a33418441695bcc28c08e477110204ba8b53e1a022ebfbd660720e8a3227004ac0adc1b8eeb34523cceba902f78129421baabe
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
@@ -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: 30,
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' => [:int, '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 != 0
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('&').map { |kv| kv.split('=') }]
363
+ when :dict then Hash[value.split(/[&,]/).map { |kv| kv.split('=') }]
358
364
  else value
359
365
  end
360
366
 
@@ -54,6 +54,8 @@ module ElasticAPM
54
54
  # rubocop:enable Metrics/MethodLength
55
55
 
56
56
  def stop
57
+ return unless running?
58
+
57
59
  @timer_task.shutdown
58
60
  @running = false
59
61
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ElasticAPM
4
- VERSION = '2.6.0'
4
+ VERSION = '2.6.1'
5
5
  end
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.0
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-19 00:00:00.000000000 Z
11
+ date: 2019-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby