def METHOD_NAME(self):
    span = getattr(cherrypy.request, "_datadog_span", None)
    if not span:
        log.warning("cherrypy: tracing tool after_error_response hook called, but no active span found")
        return
    span.error = 1
    span.set_tag_str(ERROR_TYPE, str(cherrypy._cperror._exc_info()[0]))
    span.set_tag_str(ERROR_MSG, str(cherrypy._cperror._exc_info()[1]))
    span.set_tag_str(ERROR_STACK, cherrypy._cperror.format_exc())
    self._close_span(span)