gitlab-labkit 5.1.2 → 5.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 +6 -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: 851e45a85816195a05e296d1d133dc187ead27af652de5fc1e80d47c180573b7
|
|
4
|
+
data.tar.gz: d23febee701ab99ddd7ebe16556ab9e51720df1136bbb015dd90bc8134336fa6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9cffffdb5dea4360d98eefe0de1d3fed636cf8eef173952a0d5aa3c961e71741138eb600cc9e4711f24cd693d268369eb739357d70cf30a71f5e4a7d52c49a2e
|
|
7
|
+
data.tar.gz: 78b9e58851cb08944e2def719b9959ea3c62be1e27db9b0ddfb3a9ffa1bec2b7261e3750a8b24f3d3c4d7383dd7b537e3105a69b68537b17a29afd523c2ce9f0
|
data/lib/labkit/fields.rb
CHANGED
|
@@ -138,6 +138,11 @@ module Labkit
|
|
|
138
138
|
# (e.g. newlines) to prevent log injection.
|
|
139
139
|
ADDITIONAL_DETAILS = "additional_details"
|
|
140
140
|
|
|
141
|
+
# Unrounded complexity score of a GraphQL query. Some fields have a
|
|
142
|
+
# fractional cost (e.g. graphql-ruby's __typename costs 0.2), so the total
|
|
143
|
+
# can be a non-integer value.
|
|
144
|
+
GRAPHQL_COMPLEXITY_RAW = "graphql_complexity_raw"
|
|
145
|
+
|
|
141
146
|
# Maps each field constant to its logging field variant version.
|
|
142
147
|
# A version of 0 means the field is not yet assigned to any variant.
|
|
143
148
|
VARIANT_VERSION = {
|
|
@@ -179,6 +184,7 @@ module Labkit
|
|
|
179
184
|
ROOT_CALLER_ID => 0,
|
|
180
185
|
GL_SENT_NOTIFICATION_ID => 0,
|
|
181
186
|
ADDITIONAL_DETAILS => 0,
|
|
187
|
+
GRAPHQL_COMPLEXITY_RAW => 0,
|
|
182
188
|
}.freeze
|
|
183
189
|
|
|
184
190
|
# Get the constant name for a field value
|