Sha256: d1ad4964304466710645e74387a7b2757d1393f9f7e7579198ce0e36f6bab10c
Contents?: true
Size: 808 Bytes
Versions: 4
Compression:
Stored size: 808 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, context: nil) @id = SecureRandom.hex(16) @culprit = culprit @timestamp = Util.micros @context = context end attr_accessor :id, :culprit, :exception, :log, :transaction_id, :transaction, :context, :parent_id, :trace_id attr_reader :timestamp def inspect "<ElasticAPM::Error id:#{id}" \ " culprit:#{culprit}" \ " timestamp:#{timestamp}" \ " transaction_id:#{transaction_id}" \ " trace_id:#{trace_id}" \ " exception:#{exception.inspect}" \ '>' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
elastic-apm-3.6.0 | lib/elastic_apm/error.rb |
elastic-apm-3.5.0 | lib/elastic_apm/error.rb |
elastic-apm-3.4.0 | lib/elastic_apm/error.rb |
elastic-apm-3.3.0 | lib/elastic_apm/error.rb |