Sha256: 6b36f6a8469b5b9ae410bfd53fb71d6e02a1d3fbac1d69353f6a4276358617d3

Contents?: true

Size: 515 Bytes

Versions: 24

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

require 'elastic_apm/stacktrace'
require 'elastic_apm/context'
require 'elastic_apm/error/exception'
require 'elastic_apm/error/log'

module ElasticAPM
  # @api private
  class Error
    def initialize(culprit: nil)
      @id = SecureRandom.uuid
      @culprit = culprit

      @timestamp = Util.micros
      @context = Context.new

      @transaction_id = nil
    end

    attr_accessor :id, :culprit, :exception, :log, :transaction_id, :context
    attr_reader :timestamp
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
elastic-apm-1.1.0 lib/elastic_apm/error.rb
elastic-apm-1.0.2 lib/elastic_apm/error.rb
elastic-apm-1.0.1 lib/elastic_apm/error.rb
elastic-apm-1.0.0 lib/elastic_apm/error.rb
elastic-apm-1.0.0.beta2 lib/elastic_apm/error.rb
elastic-apm-1.0.0.beta1 lib/elastic_apm/error.rb
elastic-apm-0.8.0 lib/elastic_apm/error.rb
elastic-apm-0.7.4 lib/elastic_apm/error.rb
elastic-apm-0.7.3 lib/elastic_apm/error.rb
elastic-apm-0.7.2 lib/elastic_apm/error.rb
elastic-apm-0.7.1 lib/elastic_apm/error.rb
elastic-apm-0.7.0 lib/elastic_apm/error.rb
elastic-apm-0.6.2 lib/elastic_apm/error.rb
elastic-apm-0.6.1 lib/elastic_apm/error.rb
elastic-apm-0.5.1 lib/elastic_apm/error.rb
elastic-apm-0.5.0 lib/elastic_apm/error.rb
elastic-apm-0.4.5 lib/elastic_apm/error.rb
elastic-apm-0.4.4 lib/elastic_apm/error.rb
elastic-apm-0.4.3 lib/elastic_apm/error.rb
elastic-apm-0.4.2 lib/elastic_apm/error.rb