govuk_app_config 1.3.2 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 629e8bd24b9422af13b87da654890af10134751f9d8b74e5afdf4eada6a70978
4
- data.tar.gz: ea026c299d154655ccec7e6e1d2925e044e2457fc2c55e21d511635a442cee70
3
+ metadata.gz: c76ebb58fe371660b4d6c10d3e001dc3e823ee9506fd4826823502ceb43e2fc7
4
+ data.tar.gz: 6cd6793d9c8e59f28922fba0f0c95b01597d542187548ef1f1d4a66c329ab6f9
5
5
  SHA512:
6
- metadata.gz: 19f52425763d71a8dc15f0429f67333e3ceda68092535371c5530efeb1dbc5ed73a829e916af6e2f8200543b73bb9f1c4c5ea39e1c4b24f46d920c3906752ab0
7
- data.tar.gz: d3b1cf2e316962ee61ce2eefae6652bae6726d8378dd58d90bc03eccf146ca10bc7e417fe8e9de7fb4cf884e2419ea79e7d8601e61ed4b1906a481a318f6cc83
6
+ metadata.gz: aa53f7780b90d526f16c29f07b82b251d41fa2fd0e2ce39bd2cc90800b4a007dc19976658a0eeb230cac7585bf49393e2f51636a1a868e321d8faa62932e196c
7
+ data.tar.gz: 39ae20eede2e1e8ca4d598dfe84d94822ca1487758f1e012fb2f77a5c416804ca036f33ee045358f6f7e0c9def5ce9b2defc479c0c70d0b0c46d23b41b96517d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.4.0
2
+
3
+ * Don't log intermittent errors from `gds-api-adapters` in Sentry, count them
4
+ in Graphite instead
5
+
1
6
  # 1.3.2
2
7
 
3
8
  * Update instructions to suggest that GovukUnicorn should be required directly
data/Jenkinsfile CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env groovy
2
2
 
3
+ library("govuk")
4
+
3
5
  node {
4
- def govuk = load '/var/lib/jenkins/groovy_scripts/govuk_jenkinslib.groovy'
5
6
  govuk.buildProject()
6
7
  }
@@ -5,14 +5,18 @@ end
5
5
  GovukError.configure do |config|
6
6
  # We're misusing the `should_capture` block here to hook into raven until
7
7
  # there's a better way: https://github.com/getsentry/raven-ruby/pull/750
8
- config.should_capture = Proc.new {
8
+ config.should_capture = Proc.new { |e|
9
9
  GovukStatsd.increment("errors_occurred")
10
10
 
11
11
  # For backwards compatibility
12
12
  GovukStatsd.increment("errbit.errors_occurred")
13
13
 
14
- # Return true so that we don't accidentally skip the error
15
- true
14
+ if e.class.ancestors.any? { |c| c.name =~ /^GdsApi::(HTTPIntermittent|TimedOutException)/ }
15
+ GovukStatsd.increment("gds_api_adapters.errors.#{e.class.name.demodulize.underscore}")
16
+ false
17
+ else
18
+ true
19
+ end
16
20
  }
17
21
 
18
22
  config.excluded_exceptions = [
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "1.3.2"
2
+ VERSION = "1.4.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.3.2
4
+ version: 1.4.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-02-28 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: statsd-ruby