Sha256: 6dafcb4a90e56c9fee4e169970c92a1c8b778137429d6848448c51765004c0c0

Contents?: true

Size: 1.02 KB

Versions: 9

Compression:

Stored size: 1.02 KB

Contents

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

module AppOpticsAPM
  module SDK
    module Logging

      # Log an information event in the current span
      #
      # a possible use-case is to collect extra information during the execution of a request
      #
      # === Arguments:
      # * +opts+   - (optional) hash containing key/value pairs that will be reported with this span.
      #
      def log_info(opts)
        AppOpticsAPM::API.log_info(AppOpticsAPM.layer, opts)
      end

      # Log an exception/error event in the current span
      #
      # this may be helpful to track problems when an exception is rescued
      #
      # === Arguments:
      # * +exception+ - an exception, must respond to :message and :backtrace
      # * +opts+      - (optional) hash containing key/value pairs that will be reported with this span.
      #
      def log_exception(exception, opts)
        AppOpticsAPM::API.log_exception(AppOpticsAPM.layer, exception, opts)
      end

    end

    extend Logging

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
appoptics_apm-4.10.1 lib/appoptics_apm/sdk/logging.rb
appoptics_apm-4.10.0 lib/appoptics_apm/sdk/logging.rb
appoptics_apm-4.9.0 lib/appoptics_apm/sdk/logging.rb
appoptics_apm-4.8.4 lib/appoptics_apm/sdk/logging.rb
appoptics_apm-4.8.3 lib/appoptics_apm/sdk/logging.rb
appoptics_apm-4.8.2 lib/appoptics_apm/sdk/logging.rb
appoptics_apm-4.8.1 lib/appoptics_apm/sdk/logging.rb
appoptics_apm-4.8.0 lib/appoptics_apm/sdk/logging.rb
appoptics_apm-4.7.0 lib/appoptics_apm/sdk/logging.rb