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.
- checksums.yaml +4 -4
- data/lib/labkit/fields.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1092d43de21613288d5ed802539e0eeab87bee9e8975e223f78aa29116f6cb2d
|
|
4
|
+
data.tar.gz: 7a4953fd47e09da3cc2f4657cbe563648fec3ea0f0ae63d47e0bf49610b3b39d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|