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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/labkit/fields.rb +6 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d272acd766a807cc483a70b13238a55b91dbffd0de51435c3e754df64562176d
4
- data.tar.gz: 2fbc2ff23bbedca43ef1e5c650b3b6c78a0aa4c7ecfec85fec8eae79ef2d2752
3
+ metadata.gz: 851e45a85816195a05e296d1d133dc187ead27af652de5fc1e80d47c180573b7
4
+ data.tar.gz: d23febee701ab99ddd7ebe16556ab9e51720df1136bbb015dd90bc8134336fa6
5
5
  SHA512:
6
- metadata.gz: b469df64589bfe387e3d725d1cc6c6a3e769bc078ccb043b8afdf5f3591bae10a5730ecaa87069b1dc49041f50e6c6e92e145989a2a644e2d2f33fe56abd614f
7
- data.tar.gz: 212bf5a04d9a38b4cd64f6b7319179dba2379f3b89b6b1c6070bf64f9f256ea899f6a02ddc35b271dcb6bfb300100627decd388b7b5e3ae5c45f289d2fdd4bfe
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
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: 5.1.2
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Newdigate