Verified Commit d38ba074 authored by service-platforms-labkit's avatar service-platforms-labkit Committed by GitLab
Browse files

feat: update field constants from labkit-spec v1.0

parent eb797e9e
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