Loading lib/labkit/fields.rb +5 −0 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading Loading
lib/labkit/fields.rb +5 −0 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading