scout_apm_python
scout_apm_python copied to clipboard
Integrate with Celery's Configuration
Current
We support native configuration from Django and Flask (bridging their config locations with Scout's), but not yet for Celery.
You can do:
# with a dictionary
ScoutConfig.set({ 'key': '...', 'name': 'MyApp', '': '', 'monitor': True)
# or as kwargs:
ScoutConfig.set(key='...', name='MyApp', monitor=True)
# or one by one:
ScoutConfig.set(key='...')
ScoutConfig.set(name='MyApp')
ScoutConfig.set(monitor=True)
Or you can use environment variables (same names, but capitalized and prefixed with SCOUT_: SCOUT_KEY, SCOUT_NAME, SCOUT_MONITOR)
Desired
We should read from Celery's app.conf.* and move any Scout configs over into the agent.
http://docs.celeryproject.org/en/latest/userguide/application.html#configuration
Be sure to support both direct, and from_object forms of config.