Verified Commit af614963 authored by Matias Alvarez's avatar Matias Alvarez Committed by GitLab
Browse files

Merge branch 'labkit-spec/update-fields' into 'master'

feat: update field constants (labkit-spec v1.0)

See merge request !339

Merged-by: default avatarMatias Alvarez <malvarez@gitlab.com>
Approved-by: default avatarMatias Alvarez <malvarez@gitlab.com>
Co-authored-by: default avatarservice-platforms-labkit <service-platforms-labkit@gitlab.com>
parents eb797e9e d38ba074
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -132,6 +132,12 @@ module Labkit
    # email reply.
    GL_SENT_NOTIFICATION_ID = "gl_sent_notification_id"

    # Free-form supplementary details about a log event that do not have a
    # dedicated field. Use sparingly for human-readable context. Avoid logging
    # secrets or PII, and sanitize values that may contain control characters
    # (e.g. newlines) to prevent log injection.
    ADDITIONAL_DETAILS = "additional_details"

    # Maps each field constant to its logging field variant version.
    # A version of 0 means the field is not yet assigned to any variant.
    VARIANT_VERSION = {
@@ -172,6 +178,7 @@ module Labkit
      CALLER_ID => 1,
      ROOT_CALLER_ID => 0,
      GL_SENT_NOTIFICATION_ID => 0,
      ADDITIONAL_DETAILS => 0,
    }.freeze

    # Get the constant name for a field value