gitlab-labkit 1.11.1 → 1.12.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 +18 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8c136c0ed8617c5023574687e1b1284621726be410583eb7ee17586fe56c20e
4
- data.tar.gz: f9f496d1b6ea56d986b577052f8f50c7a91f1114307af3bd9856734c482afac1
3
+ metadata.gz: e99cf18b21d9da22b488d0dd0031fc9030aeded745239b4e72e8d3f7c1c36555
4
+ data.tar.gz: 664ba45d3535d3310431eece7890c58ddfa9cd8a9dfa3c235b66fd20b2b5480e
5
5
  SHA512:
6
- metadata.gz: caed2e7c544c73856cd6a47a0f63655038f636674cf5070a0cb4b5330c2beda0c07ff0a7352b5d367f293ae818ecf08aa414316485f5cc6a262595c5240f334c
7
- data.tar.gz: 7c3b49fc037060c21ea36e49e4878f99640e241b5a7358665fddf6bdde354ac26ddda80c87b11f5de183c4a259a9b2d6c8629818a852078393487c1c78ef6ba1
6
+ metadata.gz: f7959c2eb8f54ee928a7841c2b8de8011c1e2a481c3c6aaf8e94b53a7ca186e8c28ad192a641c4c8ffac5bd8fd39a2c7c6afad324dfae77531b00e3089de3dc0
7
+ data.tar.gz: 05d07f6b1dffe39907c372ca0cb1c638cbc3898f39faf33f82ef5e042c9ea916a94d297963706e0010bc30dc14df2ebf2a1d89a342866630753af233f52934d1
data/lib/labkit/fields.rb CHANGED
@@ -102,6 +102,22 @@ module Labkit
102
102
  # Name of the service or component emitting the log event.
103
103
  SERVICE_NAME = "service_name"
104
104
 
105
+ # GitLab organization numeric ID.
106
+ GL_ORGANIZATION_ID = "gl_organization_id"
107
+
108
+ # GitLab project path.
109
+ GL_PROJECT_PATH = "gl_project_path"
110
+
111
+ # The endpoint_id of the current endpoint to be passed as caller_id when
112
+ # calling another service.
113
+ ENDPOINT_ID = "endpoint_id"
114
+
115
+ # The ID of the caller of the current service.
116
+ CALLER_ID = "caller_id"
117
+
118
+ # The endpoint_id of the original caller at the root of the call chain.
119
+ ROOT_CALLER_ID = "root_caller_id"
120
+
105
121
  # Get the constant name for a field value
106
122
  # @param field_value [String] The field value (e.g., "gl_user_id")
107
123
  # @return [String, nil] The constant name (e.g., "GL_USER_ID") or nil if not found
@@ -135,6 +151,8 @@ module Labkit
135
151
  Fields::LOG_MESSAGE => %w[msg custom_message extra.message fields.message graphql.message reason color_message exception.gitaly],
136
152
  Fields::CLASS_NAME => %w[class author_class exception.class extra.class extra.class_name],
137
153
  Fields::SERVICE_NAME => %w[service grpc.service_name auth_service type component subcomponent],
154
+ Fields::GL_ORGANIZATION_ID => %w[organization_id],
155
+ Fields::GL_PROJECT_PATH => %w[project_path full_path root_pipeline_project_path requested_project_path auth_project_path extra.gl_project_path],
138
156
  }.freeze
139
157
 
140
158
  class << self
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.11.1
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Newdigate