ddtrace/contrib/falcon/middleware.py
def _detect_and_set_status_error(err_type, span):
    """Detect the HTTP status code from the current stacktrace and
    set the traceback to the given Span
    """
    if not _is_404(err_type):
        span.set_traceback()
        return '500'
    elif _is_404(err_type):
        return '404'
Detect the HTTP status code from the current stacktrace and
    set the traceback to the given Span
    
Detect the HTTP status code from the current stacktrace and
set the traceback to the given Span
Detect the HTTP status code from the current stacktrace and set the traceback to the given Span
def _detect_and_set_status_error(err_type, span):
    if not _is_404(err_type):
        span.set_traceback()
        return '500'
    elif _is_404(err_type):
        return '404'
def _detect_and_set_status_error ( err_type , span ) : if not _is_404 ( err_type ) : span . set_traceback ( ) return '500' elif _is_404 ( err_type ) : return '404'
Detect the HTTP status code from the current stacktrace and
set the traceback to the given Span
Detect the HTTP status code from the current stacktrace and set the traceback to the given Span
"""Detect the HTTP status code from the current stacktrace and
    set the traceback to the given Span
    """
err_type
span