module Datadog::Tracing::Metadata::Errors

def set_error(e)

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