def trace():
    """Enables and disables request tracing."""

    def fget(self):
        return self._options.get('trace', None)

    def fset(self, value):
        self._options['trace'] = value
    return locals()
