govuk_app_config 7.0.0 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -2
- data/README.md +3 -17
- data/lib/govuk_app_config/govuk_error/configuration.rb +1 -13
- data/lib/govuk_app_config/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff17509787cf7ef0c402ec905d5769897a04a6b6baa79e0924956b71bbf0b372
|
4
|
+
data.tar.gz: a6f3ef4a3cb964f3c326717ed373678330fa190147414b2ecbdd1771a1af7a92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a07f29e10a85c266b758a2841392de8e769c3d3bf612c3e639c58cffa445d49b4eac0cb1c0af403a6a26a4be26c811e29ba0eb46966dadd10b803134bd020848
|
7
|
+
data.tar.gz: 84cfb71180c318d40a7026ae81bc8bab265a938e896462e0b1912fb2703a1ea8b79066bd2944c13fe04766e07a598796569fac0cae8fdced9c70034fd521db19
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,21 @@
|
|
1
|
+
# 7.2.0
|
2
|
+
|
3
|
+
* Suppress noisy Puma::HttpParserError errors ([#292](https://github.com/alphagov/govuk_app_config/pull/292))
|
4
|
+
|
5
|
+
# 7.1.0
|
6
|
+
|
7
|
+
* `GovukError` now allows specifying any name for the Sentry environment tag via the `SENTRY_CURRENT_ENV` environment variable. The environment name no longer has to match one of a fixed set of strings in order for `GovukError` to log events to Sentry.
|
8
|
+
|
1
9
|
# 7.0.0
|
2
10
|
|
3
11
|
* BREAKING: Remove [unicorn](https://rubygems.org/gems/unicorn/) and `GovukUnicorn`. All production GOV.UK apps are now using [Puma](https://rubygems.org/gems/puma/) instead.
|
4
12
|
* `GovukStatsd` is deprecated and will be removed in a future major release.
|
5
13
|
|
6
|
-
|
14
|
+
# 6.0.1
|
7
15
|
|
8
16
|
* Add support for configuring timeouts for puma-based applications
|
9
17
|
|
10
|
-
|
18
|
+
# 6.0.0
|
11
19
|
|
12
20
|
* BREAKING: Drop support for Ruby 2.7
|
13
21
|
* Register the Prometheus exporter in Sinatra middleware
|
data/README.md
CHANGED
@@ -40,13 +40,11 @@ To run an app locally with Puma, run: `bundle exec puma` or `bundle exec rails s
|
|
40
40
|
|
41
41
|
### Automatic error reporting
|
42
42
|
|
43
|
-
If you include `govuk_app_config` in your `Gemfile
|
44
|
-
|
45
|
-
Your app will have to have the following environment variables set:
|
43
|
+
If you include `govuk_app_config` in your `Gemfile` and set the following environment variables, your application will automatically log errors to Sentry.
|
46
44
|
|
47
45
|
- `SENTRY_DSN` - the [Data Source Name (DSN)][dsn] for Sentry
|
48
|
-
- `SENTRY_CURRENT_ENV` -
|
49
|
-
- `GOVUK_STATSD_PREFIX` - a Statsd prefix like `govuk.apps.application-name.hostname` (deprecated;
|
46
|
+
- `SENTRY_CURRENT_ENV` - the `environment` tag to pass to Sentry, for example `production`
|
47
|
+
- `GOVUK_STATSD_PREFIX` - a Statsd prefix like `govuk.apps.application-name.hostname` (deprecated; statsd functionality will be removed in a future release)
|
50
48
|
|
51
49
|
[dsn]: https://docs.sentry.io/quickstart/#about-the-dsn
|
52
50
|
|
@@ -73,18 +71,6 @@ GovukError.notify(
|
|
73
71
|
)
|
74
72
|
```
|
75
73
|
|
76
|
-
### Active Sentry environments
|
77
|
-
|
78
|
-
GovukError will only send errors to Sentry if your `SENTRY_CURRENT_ENV` matches one of the 'active environments' in the [default configuration](https://github.com/alphagov/govuk_app_config/blob/master/lib/govuk_app_config/govuk_error/configure.rb). This is to prevent temporary test environments from flooding our Sentry account with errors.
|
79
|
-
|
80
|
-
You can add your environment to the list of active Sentry environments like so:
|
81
|
-
|
82
|
-
```ruby
|
83
|
-
GovukError.configure do |config|
|
84
|
-
config.enabled_environments << "my-test-environment"
|
85
|
-
end
|
86
|
-
```
|
87
|
-
|
88
74
|
### Error configuration
|
89
75
|
|
90
76
|
You can exclude certain errors from being reported using this:
|
@@ -13,19 +13,6 @@ module GovukError
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def set_up_defaults
|
16
|
-
# These are the environments (described by the `SENTRY_CURRENT_ENV`
|
17
|
-
# ENV variable) where we want to capture Sentry errors. If
|
18
|
-
# `SENTRY_CURRENT_ENV` isn't in this list, or isn't defined, then
|
19
|
-
# don't capture the error.
|
20
|
-
self.enabled_environments = %w[
|
21
|
-
integration-blue-aws
|
22
|
-
integration-eks
|
23
|
-
staging
|
24
|
-
staging-eks
|
25
|
-
production
|
26
|
-
production-eks
|
27
|
-
]
|
28
|
-
|
29
16
|
self.excluded_exceptions = [
|
30
17
|
# Default ActionDispatch rescue responses
|
31
18
|
"ActionController::RoutingError",
|
@@ -54,6 +41,7 @@ module GovukError
|
|
54
41
|
"GdsApi::HTTPIntermittentServerError",
|
55
42
|
"GdsApi::TimedOutException",
|
56
43
|
"Mongoid::Errors::DocumentNotFound",
|
44
|
+
"Puma::HttpParserError",
|
57
45
|
"Sinatra::NotFound",
|
58
46
|
"Slimmer::IntermittentRetrievalError",
|
59
47
|
"Sidekiq::JobRetry::Skip",
|
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: 7.
|
4
|
+
version: 7.2.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: 2023-
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstasher
|
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
321
321
|
- !ruby/object:Gem::Version
|
322
322
|
version: '0'
|
323
323
|
requirements: []
|
324
|
-
rubygems_version: 3.4.
|
324
|
+
rubygems_version: 3.4.13
|
325
325
|
signing_key:
|
326
326
|
specification_version: 4
|
327
327
|
summary: Base configuration for GOV.UK applications
|