def configure_audit_decorator(graph):
    """
    Configure the audit decorator.

    Example Usage:

        @graph.audit
        def login(username, password):
            ...
    """
    include_request_body = int(graph.config.audit.include_request_body)
    include_response_body = int(graph.config.audit.include_response_body)
    include_path = strtobool(graph.config.audit.include_path)
    include_query_string = strtobool(graph.config.audit.include_query_string)

    def _audit(func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            options = AuditOptions(
                include_request_body=include_request_body,
                include_response_body=include_response_body,
                include_path=include_path,
                include_query_string=include_query_string,
            )
            return _audit_request(options, func, graph.request_context, *args, **kwargs)
        return wrapper
    return _audit
Configure the audit decorator.

    Example Usage:

        @graph.audit
        def login(username, password):
            ...