govuk_app_config 9.0.0 → 9.0.2
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/lib/govuk_app_config/govuk_json_logging.rb +5 -0
- data/lib/govuk_app_config/railtie.rb +3 -1
- 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: 5eebd463208dee81ff14cc1a87f100aca70e681ac5981035e4023fb858e80a73
|
4
|
+
data.tar.gz: a0eb596c770aecad2de8d136615dd2b817d58c13d59b39aeb41cab6eb4647ab0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90afd8244f3996cc39d6745d41eee8f7f722eac4933f9963593abdb1e9bbf7e5547badcdcace94271fa0d1e9c2a4dd0a30ea7b7d68e150f2f9ce42dea4f146df
|
7
|
+
data.tar.gz: 9589eb251474ac70f2df9f731fa849689ef16c66a65bc150171dee297c5934f94e99eddb5178bc761ae3dacf5ea5ea1091effb1526ecece9da71faf8b33ded64
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# 9.0.2
|
2
|
+
|
3
|
+
* GovukAppConfig no longer automatically initialises OpenTelemetry when running in `rails console`.
|
4
|
+
|
5
|
+
# 9.0.1
|
6
|
+
|
7
|
+
* Rename the "error" field in Rails logs from logstasher to "message" as error is supposed to be an object.
|
8
|
+
|
1
9
|
# 9.0.0
|
2
10
|
|
3
11
|
* BREAKING: JSON logs are no longer configured automatically for production Rails apps and are turned on with the GOVUK_RAILS_JSON_LOGGING environment variable ([#302](https://github.com/alphagov/govuk_app_config/pull/302))
|
@@ -8,11 +16,11 @@
|
|
8
16
|
|
9
17
|
# 8.1.1
|
10
18
|
|
11
|
-
* Fix prometheus_exporter to method patching compatible with
|
19
|
+
* Fix prometheus_exporter to method patching compatible with OpenTelemetry.
|
12
20
|
|
13
21
|
# 8.1.0
|
14
22
|
|
15
|
-
* Add ability to enable
|
23
|
+
* Add ability to enable OpenTelemetry instrumentation for Rails applications.
|
16
24
|
|
17
25
|
# 8.0.2
|
18
26
|
|
@@ -50,6 +50,11 @@ module GovukJsonLogging
|
|
50
50
|
# Elasticsearch index expect source to be an object and logstash defaults
|
51
51
|
# source to be the host IP address causing logs to be dropped.
|
52
52
|
Rails.application.config.logstasher.source = {}
|
53
|
+
# Elasticsearch index expect error to be an object and logstash defaults
|
54
|
+
# error to be a string causing logs to be dropped.
|
55
|
+
Rails.application.config.logstasher.field_renaming = {
|
56
|
+
error: :message,
|
57
|
+
}
|
53
58
|
|
54
59
|
Rails.application.config.logstasher.logger = Logger.new(
|
55
60
|
$stdout,
|
@@ -9,7 +9,9 @@ module GovukAppConfig
|
|
9
9
|
end
|
10
10
|
|
11
11
|
initializer "govuk_app_config.configure_open_telemetry" do |app|
|
12
|
-
|
12
|
+
unless Rails.const_defined?(:Console)
|
13
|
+
GovukOpenTelemetry.configure(app.class.module_parent_name.underscore)
|
14
|
+
end
|
13
15
|
end
|
14
16
|
|
15
17
|
config.before_initialize do
|
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: 9.0.
|
4
|
+
version: 9.0.2
|
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-07-
|
11
|
+
date: 2023-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstasher
|
@@ -363,7 +363,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
363
363
|
- !ruby/object:Gem::Version
|
364
364
|
version: '0'
|
365
365
|
requirements: []
|
366
|
-
rubygems_version: 3.4.
|
366
|
+
rubygems_version: 3.4.16
|
367
367
|
signing_key:
|
368
368
|
specification_version: 4
|
369
369
|
summary: Base configuration for GOV.UK applications
|