govuk_app_config 1.9.3 → 1.10.0

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: 66b75131f3c5b26318988b95a5da951364739a9a4a168abbaae39795f115ca07
4
- data.tar.gz: f4f3b80b1f519fc77c6fec0abcd311e89bab45138d382625d45232d8f4050a41
3
+ metadata.gz: c62ff2c26e73e0ccd1cba0bef98975ae44bfab904c178b8c21809976e4691ce1
4
+ data.tar.gz: 20017d561912281a14ee43c33005a52818d93ac22c3978807f14e5230483da48
5
5
  SHA512:
6
- metadata.gz: 4bb2be9bf077403d7f2ec70767e69dc655840c0f84f8ccc015a24eef07bd0f8d7760430f19d3e951f41fb7ee9cfe1838dc6af6b563bab7a9f24c520f7779b4d9
7
- data.tar.gz: ee1ab709ee962ce2a28d5bb47309233b8014072d05a601302de05f237bd34b363ffd7d8be1fa87ea15790632750aa557dd6476b4c0ec948e7d4393dfe28db8d4
6
+ metadata.gz: f34561648d21a511d5423487401597f5d5be1404d79f2cfb14118730869b86dce0ba3cbc80990d098177081fe1b09a2f160df5f6831239ff0d3124bb24836a65
7
+ data.tar.gz: e1fdd04a78bba8a0ac959e05240a83fafe21f3f9187565122495c6a5efc164e34c5c59b390f1cfee960b02811a02c16479585a10ad2d155a58cd2c194e9a95ff
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.10.0
2
+
3
+ * Only instrument the `aws_sdk` gem with AWS X-Ray if the
4
+ `XRAY_PATCH_AWS_SDK` environment variable is present.
5
+
1
6
  # 1.9.3
2
7
 
3
8
  * Do not report Sidekiq queue thresholds in healthchecks which are
@@ -8,9 +8,10 @@ module GovukXRay
8
8
  end
9
9
 
10
10
  def self.start
11
- # if aws-sdk is loaded, we want to instrument that too
12
- patch = Gem.loaded_specs.has_key?('aws-sdk-core') ?
13
- %I[aws_sdk net_http] : %I[net_http]
11
+ # patching 'aws_sdk' seem to impose a large memory overhead, so
12
+ # don't do that by default
13
+ patch = ENV.has_key?('XRAY_PATCH_AWS_SDK') ?
14
+ %I[aws_sdk net_http] : %I[net_http]
14
15
 
15
16
  # if there isn't a name set, attempting to record a segment will
16
17
  # throw an error
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "1.9.3"
2
+ VERSION = "1.10.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.3
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-26 00:00:00.000000000 Z
11
+ date: 2018-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-xray-sdk