gitlab-labkit 4.1.2 → 4.2.0

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/labkit/fields.rb +7 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65cd128c823d6b57133cffb5e0b4314af6ca3e18f0cf23c38c874e58a77bcdad
4
- data.tar.gz: cbdd5aa4acc9250e07fb2332257e15c6712cf6a6c82389031d159f565a857dff
3
+ metadata.gz: 1092d43de21613288d5ed802539e0eeab87bee9e8975e223f78aa29116f6cb2d
4
+ data.tar.gz: 7a4953fd47e09da3cc2f4657cbe563648fec3ea0f0ae63d47e0bf49610b3b39d
5
5
  SHA512:
6
- metadata.gz: 7c93fda74c06cd0d76c4aa37315a98433b24e94e3b8f6a4a67ff5e2f579dfb01b25b3f716b90806e175fada5bb5d7669adc3daf3483872f142a026a141f09675
7
- data.tar.gz: 4e2ca4d166e927065772c3b87892c4bc0b5152e4c77eba4ec407bce5d7901e5cc136a7748e7063a777401c116c2f57414b8fb1d8ecdeea17b671107d9a73a2d7
6
+ metadata.gz: 5f885a5454c551e8adc0fd4ad8ca99c81bbc438a61b4787e122fae02f966062d8006c9766cb98f73d2e4c4465a3d5c3a3dd9fe13e44eb76ca21816b1c60571a1
7
+ data.tar.gz: b11dc29d11ea325ea787af6ad1827bb9963146427d0930c38089b4f1901d21e1faca20437f52cd4a4f8de7b7de85fc0de2932cdcc5f8279c8e9fbe1cd77f711b
data/lib/labkit/fields.rb CHANGED
@@ -132,6 +132,12 @@ module Labkit
132
132
  # email reply.
133
133
  GL_SENT_NOTIFICATION_ID = "gl_sent_notification_id"
134
134
 
135
+ # Free-form supplementary details about a log event that do not have a
136
+ # dedicated field. Use sparingly for human-readable context. Avoid logging
137
+ # secrets or PII, and sanitize values that may contain control characters
138
+ # (e.g. newlines) to prevent log injection.
139
+ ADDITIONAL_DETAILS = "additional_details"
140
+
135
141
  # Maps each field constant to its logging field variant version.
136
142
  # A version of 0 means the field is not yet assigned to any variant.
137
143
  VARIANT_VERSION = {
@@ -172,6 +178,7 @@ module Labkit
172
178
  CALLER_ID => 1,
173
179
  ROOT_CALLER_ID => 0,
174
180
  GL_SENT_NOTIFICATION_ID => 0,
181
+ ADDITIONAL_DETAILS => 0,
175
182
  }.freeze
176
183
 
177
184
  # Get the constant name for a field value
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-labkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.2
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Newdigate