govuk_app_config 9.0.1 → 9.0.3

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: fc7d94f65aa2c81b7df62708d405601aeef8ca8dfe8455d59da46843c75eaf1e
4
- data.tar.gz: 183aecdff3c9a1f8fd0f0ee3ad20bdece7a195d8005592d02b3eac1f4ae8770d
3
+ metadata.gz: 2e87fe7b5d3d3c22c7bce9dd0b18ddc1d949741eadb620832752723d7b36dc7c
4
+ data.tar.gz: '06510976f0ad19f829f5fb5bfb9ad178d48f66eb1ca063f3cad6efffade10a7e'
5
5
  SHA512:
6
- metadata.gz: 82c3121d70042f7333b8c81acae37a2466bb2e04a6142a75eeaecdc2ccc345dd35886350da7b6657e0bc9550eeaf0d09aa43326a3327c4ffdcac5d6536784c28
7
- data.tar.gz: 4dd45d0cebff36feda7e21a5032baa716d7147cb03b7388674e9bab8421a5f04af1089bb472f82b7267a60dc014a8085ea14bb3c7ef415ada8f674a8bbe1b3fb
6
+ metadata.gz: 11b27df9aa24a5a0751a75150b4227e7acfd542168766c40ffbbce505502e00db02a9820eb22309b0296a822e6a571f28704d0ac9ede717ddb5640ce89151c4a
7
+ data.tar.gz: 7321f213d4b9d0356404a03bedd949596c5e8f9e59d1b0f80cc10e1e1e120db162385c6df3d1afa073b24075102f1e84d9a9a66ad37adb743ae54302f3ce1a0f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 9.0.3
2
+
3
+ * When error is reported by Rails logger, the field is now logged as "error_message" in order to avoid overwriting the "message" field.
4
+
5
+ # 9.0.2
6
+
7
+ * GovukAppConfig no longer automatically initialises OpenTelemetry when running in `rails console`.
8
+
1
9
  # 9.0.1
2
10
 
3
11
  * Rename the "error" field in Rails logs from logstasher to "message" as error is supposed to be an object.
@@ -12,11 +20,11 @@
12
20
 
13
21
  # 8.1.1
14
22
 
15
- * Fix prometheus_exporter to method patching compatible with open telemetry.
23
+ * Fix prometheus_exporter to method patching compatible with OpenTelemetry.
16
24
 
17
25
  # 8.1.0
18
26
 
19
- * Add ability to enable Open Telemetry instrumentation for Rails applications.
27
+ * Add ability to enable OpenTelemetry instrumentation for Rails applications.
20
28
 
21
29
  # 8.0.2
22
30
 
@@ -53,7 +53,7 @@ module GovukJsonLogging
53
53
  # Elasticsearch index expect error to be an object and logstash defaults
54
54
  # error to be a string causing logs to be dropped.
55
55
  Rails.application.config.logstasher.field_renaming = {
56
- error: :message,
56
+ error: :error_message,
57
57
  }
58
58
 
59
59
  Rails.application.config.logstasher.logger = Logger.new(
@@ -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.1".freeze
2
+ VERSION = "9.0.3".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.1
4
+ version: 9.0.3
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-14 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