Loading lib/labkit/logging/json_logger.rb +4 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,10 @@ require "json" module Labkit module Logging class JsonLogger < ::Logger INTERNAL_LOG_KEYS = Labkit::Context::RAW_KEYS + [Labkit::Context::LOG_KEY] RESERVED_LOG_KEYS = INTERNAL_LOG_KEYS.map(&:to_sym) + [ # We should also reject log keys coming from Labkit::Context, but we cannot # do this without breaking clients currently. This is tracked in # https://gitlab.com/gitlab-org/ruby/gems/labkit-ruby/-/issues/35 RESERVED_LOG_KEYS = [ :environment, :host, :shard, Loading Loading
lib/labkit/logging/json_logger.rb +4 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,10 @@ require "json" module Labkit module Logging class JsonLogger < ::Logger INTERNAL_LOG_KEYS = Labkit::Context::RAW_KEYS + [Labkit::Context::LOG_KEY] RESERVED_LOG_KEYS = INTERNAL_LOG_KEYS.map(&:to_sym) + [ # We should also reject log keys coming from Labkit::Context, but we cannot # do this without breaking clients currently. This is tracked in # https://gitlab.com/gitlab-org/ruby/gems/labkit-ruby/-/issues/35 RESERVED_LOG_KEYS = [ :environment, :host, :shard, Loading