Module: Datadog::Tracing::Metadata::Errors
- Defined in:
- lib/datadog/tracing/metadata/errors.rb
Overview
Adds error tagging behavior
Instance Method Summary collapse
-
#set_error(e) ⇒ Object
Mark the span with the given error.
Instance Method Details
#set_error(e) ⇒ Object
Mark the span with the given error.
14 15 16 17 18 19 20 |
# File 'lib/datadog/tracing/metadata/errors.rb', line 14 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.) unless e..empty? set_tag(Ext::Errors::TAG_STACK, e.backtrace) unless e.backtrace.empty? end |