Sha256: 0e32231bd0d6f5a6725076d13d2058ad549919fd2930234e0e41ce9a313237d3
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
require_relative '../../core/error' require_relative 'ext' module Datadog module Tracing module Metadata # Adds error tagging behavior # @public_api module Errors # Mark the span with the given error. def set_error(e) e = Core::Error.build_from(e) set_tag(Ext::Errors::TAG_TYPE, e.type) unless e.type.empty? set_tag(Ext::Errors::TAG_MSG, e.message) unless e.message.empty? set_tag(Ext::Errors::TAG_STACK, e.backtrace) unless e.backtrace.empty? end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-1.10.1 | lib/datadog/tracing/metadata/errors.rb |
ddtrace-1.10.0 | lib/datadog/tracing/metadata/errors.rb |