gitlab-labkit 1.5.1 → 1.6.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/.gitlab-ci.yml +3 -3
- data/.pre-commit-config.yaml +1 -1
- data/lib/labkit/fields.rb +35 -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: 4f0ded1c554ab0eb289f72738429db8f92ab18eb091fd7186663bdeb7d861cfc
|
|
4
|
+
data.tar.gz: 1b5276133b05752d03c3a58d36602e923cf69b8e040a71a22e194a971ca0bff6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e100693a48024f97d9314e2699c39be46a7dad631e3679e136b9477d9f6410a9ef86f346ed8a63777cae8e528332b6bc0adef41a5c8702ec84a62227ddb1e43
|
|
7
|
+
data.tar.gz: dd31347725dd09c313f8294238ab5e10faa50bcd2a94496bf77f80eaa1b5ea70bc2c194c4c1cb61991cf63c7a92386111abd7f36140de8d704d92c4e6ae6dc18
|
data/.gitlab-ci.yml
CHANGED
|
@@ -19,13 +19,13 @@ include:
|
|
|
19
19
|
# It includes standard checks, gitlab-scanners, validations and release processes
|
|
20
20
|
# common to all projects using this template library.
|
|
21
21
|
# see https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/templates/standard.md
|
|
22
|
-
- component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/standard-build@v3.
|
|
22
|
+
- component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/standard-build@v3.8
|
|
23
23
|
|
|
24
24
|
# Runs rspec tests and rubocop on the project
|
|
25
25
|
# see https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/templates/ruby.md
|
|
26
|
-
- component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/ruby-build@v3.
|
|
26
|
+
- component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/ruby-build@v3.8
|
|
27
27
|
|
|
28
|
-
- component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/danger@v3.
|
|
28
|
+
- component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/danger@v3.8
|
|
29
29
|
|
|
30
30
|
.test_template: &test_definition
|
|
31
31
|
extends: .with_bundle
|
data/.pre-commit-config.yaml
CHANGED
|
@@ -25,7 +25,7 @@ repos:
|
|
|
25
25
|
# Documentation available at
|
|
26
26
|
# https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/docs/pre-commit.md
|
|
27
27
|
- repo: https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks
|
|
28
|
-
rev: v3.
|
|
28
|
+
rev: v3.8 # renovate:managed
|
|
29
29
|
|
|
30
30
|
hooks:
|
|
31
31
|
- id: shellcheck # Run shellcheck for changed Shell files
|
data/lib/labkit/fields.rb
CHANGED
|
@@ -44,10 +44,45 @@ module Labkit
|
|
|
44
44
|
# captures the user's username for logging purposes.
|
|
45
45
|
GL_USER_NAME = "gl_user_name"
|
|
46
46
|
|
|
47
|
+
# ErrorType - a string field that should contain the error type or classification
|
|
48
|
+
# (e.g., "NoMethodError", "ValidationError").
|
|
49
|
+
ERROR_TYPE = "error_type"
|
|
50
|
+
|
|
51
|
+
# ErrorMessage - a string field that should contain the detailed error message
|
|
52
|
+
# (e.g., "undefined method `boom!' for nil").
|
|
53
|
+
ERROR_MESSAGE = "error_message"
|
|
54
|
+
|
|
47
55
|
# HTTPStatusCode - an integer field that
|
|
48
56
|
# captures the HTTP status code of requests for logging purposes.
|
|
49
57
|
HTTP_STATUS_CODE = "status"
|
|
50
58
|
|
|
59
|
+
# HTTPMethod - a string field that captures the HTTP method
|
|
60
|
+
# (e.g., "GET", "POST") of a request for logging purposes.
|
|
61
|
+
HTTP_METHOD = "method"
|
|
62
|
+
|
|
63
|
+
# HTTPURL - a string field that captures the URL of an HTTP request
|
|
64
|
+
# (scheme, host, and path only - query strings should be omitted
|
|
65
|
+
# to avoid logging sensitive data) for logging purposes.
|
|
66
|
+
# (e.g. "https://example.com/foo") Query strings and fragments (anchors)
|
|
67
|
+
# must be omitted to avoid logging sensitive information such as tokens
|
|
68
|
+
# or passwords that may appear in query parameters.
|
|
69
|
+
HTTP_URL = "url"
|
|
70
|
+
|
|
71
|
+
# DurationS - a float field that captures the duration of any operation
|
|
72
|
+
# in seconds for logging purposes. It is not limited to HTTP requests and
|
|
73
|
+
# can be used for any timed operation (e.g. database queries, background
|
|
74
|
+
# jobs, external API calls).
|
|
75
|
+
DURATION_S = "duration_s"
|
|
76
|
+
|
|
77
|
+
# RemoteIP - a string field that captures the remote IP
|
|
78
|
+
# address of a request for logging purposes.
|
|
79
|
+
REMOTE_IP = "remote_ip"
|
|
80
|
+
|
|
81
|
+
# TCPAddress - a string field that captures the TCP address a service or
|
|
82
|
+
# component is listening on, in "host:port" format
|
|
83
|
+
# (e.g. "0.0.0.0:8080" or "127.0.0.1:9090").
|
|
84
|
+
TCP_ADDRESS = "tcp_address"
|
|
85
|
+
|
|
51
86
|
# New fields being added to this section should have
|
|
52
87
|
# the appropriate doc comments added above. These
|
|
53
88
|
# should clearly indicate what the intended use of the
|