baseplate.observersΒΆ

Observers watch Baseplate for events that happen during requests, such as requests starting and ending and service calls being made. Observers can also add attributes to the RequestContext for your application to use during the request.

To enable observers, call configure_observers() on your Baseplate object during application startup and supply the application configuration. See each observer below for what configuration options are available.

def make_wsgi_app(app_config):
    baseplate = Baseplate(app_config)
    baseplate.configure_observers()

    ...