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

Add HTTP Status field

parent c2a6b1ba
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -44,6 +44,10 @@ module Labkit
    # captures the user's username for logging purposes.
    GL_USER_NAME = "gl_user_name"

    # HTTPStatusCode - an integer field that
    # captures the HTTP status code of requests for logging purposes.
    HTTP_STATUS_CODE = "status"

    # New fields being added to this section should have
    # the appropriate doc comments added above. These
    # should clearly indicate what the intended use of the
@@ -68,6 +72,7 @@ module Labkit

      MAPPINGS = {
        Fields::GL_USER_ID => %w[user_id userid],
        Fields::HTTP_STATUS_CODE => %w[status_code extra.status status_text]
      }.freeze

      class << self