Sha256: aea75a4b629075248cad93d0c5f875a22b19ffc407ac012049b369bf2941155e

Contents?: true

Size: 594 Bytes

Versions: 16

Compression:

Stored size: 594 Bytes

Contents

# Copyright (c) 2019 SolarWinds, LLC.
# All rights reserved.

require_relative 'logger_formatter'

module AppOpticsAPM
  module Logging
    module LogEvent
      include AppOpticsAPM::Logger::Formatter # provides #insert_trace_id

      def initialize(logger, level, data, caller_tracing )
        return super if AppOpticsAPM::Config[:log_traceId] == :never

        data = insert_trace_id(data)
        super
      end

    end
  end
end

if AppOpticsAPM.loaded && defined?(Logging::LogEvent)
  module Logging
    class LogEvent
      prepend AppOpticsAPM::Logging::LogEvent
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
appoptics_apm-4.13.0 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.12.2 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.12.1 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.12.0 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.11.2 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.11.1 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.11.0 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.10.1 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.10.0 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.9.0 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.8.4 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.8.3 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.8.2 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.8.1 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.8.0 lib/appoptics_apm/inst/logging_log_event.rb
appoptics_apm-4.7.0 lib/appoptics_apm/inst/logging_log_event.rb