""" Application. =========== This file is used to spawn the necessary processes to handle the load on the server. Application is a required variable within this file. """ # call dd_patch as soon as possible to ensure modules report to datadog apm from users import app, config, dd_patch, handlers # noqa: F401 from users.connectors.sentry import get_client app = app.app if config.SENTRY: get_client()