Verified Commit 1ccb7f8a authored by Elliot Forbes's avatar Elliot Forbes 2️⃣ Committed by GitLab
Browse files

Merge branch 'malvarez-add-http-status-field' into 'master'

Add HTTP Status field

See merge request !241

Merged-by: Elliot Forbes's avatarElliot Forbes <eforbes@gitlab.com>
Approved-by: Elliot Forbes's avatarElliot Forbes <eforbes@gitlab.com>
Co-authored-by: default avatarMatias Alvarez <malvarez@gitlab.com>
parents c2a6b1ba 70236f2b
Loading
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