gitlab-labkit 5.3.1 → 5.5.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 +9 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aed1a8c61c569399190d8729a7121c1f45a5d4cd9d95f0f94cb83712f369d4c5
4
- data.tar.gz: 7c20c5fe22b0012fd0149d238b525254d18a97da8df75e2bdf7c83da5f25796f
3
+ metadata.gz: 3fe9b7fbeed18b9aced46d0f50b8e0aeeb4442a164818ed00f581a39559a2203
4
+ data.tar.gz: 5362ebd8bd9d8f3cf598dd473be4a1078ed1b5eda9e11723c6bba35e5b5ad62c
5
5
  SHA512:
6
- metadata.gz: 33023dcf68427b86e1c63440e7edc0795a1cd612dea306e025170ad3a070cd394622e69d2b9f8b44dcae63674a3f70bf4715b5e2c0e1dd19cb5fdc884a0c7137
7
- data.tar.gz: dd800774b482b0b51c79640d1b97080ce5688fb30e2c06b6b0542606a1e7b08ec719a17c4b0111cc39f697c9582bc4abe790a8f94f94942cdfd5d0e630dc410c
6
+ metadata.gz: a8e09616bd24dc1e5b619ae05c426451ef0b1cb40305832dfd52b04e801cd2f490823cb45592e101469f3cee4edca5a4f6d2190ddcfbded59e0e1282fc5fe01a
7
+ data.tar.gz: 5103ce4264e6fca52740485de4c81e17feedeb31c493b2aaeda35a0ecdedbd47c043ec77a15371a1eb949a48c8341393c4fc09bee5458d958de83b195315def8
data/lib/labkit/fields.rb CHANGED
@@ -143,6 +143,12 @@ module Labkit
143
143
  # can be a non-integer value.
144
144
  GRAPHQL_COMPLEXITY_RAW = "graphql_complexity_raw"
145
145
 
146
+ # Number of nodes a GraphQL query returned across all its connection fields.
147
+ # The count is taken after authorization removes the nodes the user can't
148
+ # see. Nested connections add up. The value is 0 when the query selects no
149
+ # connection field.
150
+ GRAPHQL_CONNECTION_NODES = "graphql_connection_nodes"
151
+
146
152
  # Maps each field constant to its logging field variant version.
147
153
  # A version of 0 means the field is not yet assigned to any variant.
148
154
  VARIANT_VERSION = {
@@ -185,6 +191,7 @@ module Labkit
185
191
  GL_SENT_NOTIFICATION_ID => 0,
186
192
  ADDITIONAL_DETAILS => 0,
187
193
  GRAPHQL_COMPLEXITY_RAW => 0,
194
+ GRAPHQL_CONNECTION_NODES => 0,
188
195
  }.freeze
189
196
 
190
197
  # Get the constant name for a field value
@@ -213,8 +220,8 @@ module Labkit
213
220
  Fields::DURATION_S => %w[duration duration_ms elapsed_time actual_duration time_ms total_time gitaly.duration],
214
221
  Fields::REMOTE_IP => %w[ip source_ip ip_address],
215
222
  Fields::HTTP_HOST => %w[hostname request_host gitlab_host kubernetes.host],
216
- Fields::GL_PROJECT_ID => %w[extra.project_id meta.project_id meta.search.project_id job_project_id target_project_id],
217
- Fields::GL_PIPELINE_ID => %w[extra.pipeline_id meta.pipeline_id root_pipeline_id],
223
+ Fields::GL_PROJECT_ID => %w[project_id extra.project_id meta.project_id meta.search.project_id job_project_id target_project_id],
224
+ Fields::GL_PIPELINE_ID => %w[pipeline_id extra.pipeline_id meta.pipeline_id root_pipeline_id],
218
225
  Fields::TIMESTAMP => %w[start_time],
219
226
  Fields::SEVERITY => %w[level],
220
227
  Fields::LOG_MESSAGE => %w[msg custom_message extra.message fields.message graphql.message reason color_message exception.gitaly],
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.3.1
4
+ version: 5.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Newdigate