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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c7057e132dd046256e4e099cadef103283e3bbd682ecf3d1c596a0996d2c007
4
- data.tar.gz: 238db3eca235a4423df26c23b65ed22523c7d27d9209a19f953df9e3ff817437
3
+ metadata.gz: 4f0ded1c554ab0eb289f72738429db8f92ab18eb091fd7186663bdeb7d861cfc
4
+ data.tar.gz: 1b5276133b05752d03c3a58d36602e923cf69b8e040a71a22e194a971ca0bff6
5
5
  SHA512:
6
- metadata.gz: cd33f670799561477b139c690eab1e89ba6e28e660cf95d64725be3a5daf2b2df3e589180fcd6afeea7c2c6fa01e8c7e76ddaba3be4d0ee0ced09f16953e4764
7
- data.tar.gz: bd64be24a45c2fec786c94bdc61bc3d4abf982eb1d073db41a217240b46b741fea2982e58c1ca568d6c4ff3474d32296cca2991f96011b7a188fa955f457fc3a
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.5
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.5
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.5
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
@@ -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.5 # renovate:managed
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
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: 1.5.1
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Newdigate