diff --git a/source/includes/_python.md b/source/includes/_python.md index 2200ab62b8a..c077543345a 100644 --- a/source/includes/_python.md +++ b/source/includes/_python.md @@ -30,6 +30,7 @@ The libraries below require a small number of configuration updates. Click on th * [Falcon](#falcon) * [Flask](#flask) * [Flask SQLAlchemy](#flask-sqlalchemy) +* [Huey](#huey) * [Nameko](#nameko) * [Pyramid](#pyramid) * [SQLAlchemy](#sqlalchemy) @@ -443,6 +444,65 @@ from scout_apm.flask.sqlalchemy import instrument_sqlalchemy instrument_sqlalchemy(engine) ``` +## Huey + +Scout supports Huey 2.0+. + +Add the following to instrument your Huey application: + +
+ 1 + | +
+ Install the +pip install scout-apm ++ |
+
+ 2 + | +
+ Add Scout to your Huey application: ++from huey import SqliteHuey +from scout_apm.api import Config +from scout_apm.huey import attach_scout + +broker = SqliteHuey() + + +Config.set( + monitor=True, + name="A FRIENDLY NAME FOR YOUR APP", + key="[AVAILABLE IN THE SCOUT UI]", +) +attach_scout(huey) ++ + If you wish to configure Scout via environment variables, use
+If you've installed Scout via the Heroku Addon, the provisioning process automatically sets |
+
3 | +
+ Deploy. +It takes approximatively five minutes for your data to first appear within the Scout UI. +Tasks will appear in the "Background Jobs" area of the Scout UI. + |
+