class ElasticAPM::Span

def done

def done
  stop
  if should_build_stacktrace?
    build_stacktrace
  end
  self
end