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.
- checksums.yaml +4 -4
- data/lib/labkit/fields.rb +9 -2
- 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: 3fe9b7fbeed18b9aced46d0f50b8e0aeeb4442a164818ed00f581a39559a2203
|
|
4
|
+
data.tar.gz: 5362ebd8bd9d8f3cf598dd473be4a1078ed1b5eda9e11723c6bba35e5b5ad62c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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],
|