govuk_app_config 9.0.0 → 9.0.2

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: 734094235f224b9ff9f6997173bc0d43462c0b8c3ab315743cb57d480280a99f
4
- data.tar.gz: 44b9a4f66e2af4aeb5f34c6734af0d579e1c31ffa758562ff212358c18025157
3
+ metadata.gz: 5eebd463208dee81ff14cc1a87f100aca70e681ac5981035e4023fb858e80a73
4
+ data.tar.gz: a0eb596c770aecad2de8d136615dd2b817d58c13d59b39aeb41cab6eb4647ab0
5
5
  SHA512:
6
- metadata.gz: a283d0c433d0c52d14def673aec0bfcf6676f79ff69f685bf027b800cbc8be01839550bbbb3c89c3dd4298fe457650cdaf157bb81f6ac0931654f3978e151366
7
- data.tar.gz: d179c6ab495c9812c47a43ec35329648fbb93ebb29fcf976fb4bc2f68be3c6f129808aad893f7033fe0fa84678720f32a3016c9241a18b34d2130a57528c5071
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 open telemetry.
19
+ * Fix prometheus_exporter to method patching compatible with OpenTelemetry.
12
20
 
13
21
  # 8.1.0
14
22
 
15
- * Add ability to enable Open Telemetry instrumentation for Rails applications.
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
- GovukOpenTelemetry.configure(app.class.module_parent_name.underscore)
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
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "9.0.0".freeze
2
+ VERSION = "9.0.2".freeze
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: 9.0.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-05 00:00:00.000000000 Z
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.15
366
+ rubygems_version: 3.4.16
367
367
  signing_key:
368
368
  specification_version: 4
369
369
  summary: Base configuration for GOV.UK applications