From 90672da291d0799a648e2bddd8f1e22fc14e4f0f Mon Sep 17 00:00:00 2001 From: Julien Whitney Date: Fri, 6 Mar 2026 11:40:48 -0500 Subject: [PATCH 1/2] docs(python): Add owner field examples to crons documentation Refs getsentry/sentry-python#5609 --- docs/platforms/python/crons/index.mdx | 2 ++ .../platforms/python/integrations/celery/crons.mdx | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/platforms/python/crons/index.mdx b/docs/platforms/python/crons/index.mdx index 136097bea9361..0fe5b4fb75126 100644 --- a/docs/platforms/python/crons/index.mdx +++ b/docs/platforms/python/crons/index.mdx @@ -37,6 +37,8 @@ monitor_config = { # It'll take `recovery_threshold` OK check-ins to resolve # an issue "recovery_threshold": 5, + # Assign ownership to a team or user (format: "team:6" or "user:51") + "owner": "team:6", } @monitor(monitor_slug='', monitor_config=monitor_config) diff --git a/docs/platforms/python/integrations/celery/crons.mdx b/docs/platforms/python/integrations/celery/crons.mdx index a70968ea44c79..7aef65dc5294c 100644 --- a/docs/platforms/python/integrations/celery/crons.mdx +++ b/docs/platforms/python/integrations/celery/crons.mdx @@ -155,3 +155,17 @@ def init_sentry(**kwargs): def tell_the_world(msg): print(msg) ``` + +You can also pass additional monitor configuration, including ownership: + +```python {diff} {filename:tasks.py} ++monitor_config = { ++ "schedule": {"type": "crontab", "value": "0 0 * * *"}, ++ "owner": "team:6", ++} + +@app.task ++@sentry_sdk.monitor(monitor_slug='', monitor_config=monitor_config) +def tell_the_world(msg): + print(msg) +``` From a25ab60ec5bef931c03b71a16e0c707db09b335e Mon Sep 17 00:00:00 2001 From: Julien Whitney Date: Tue, 10 Mar 2026 11:24:04 -0400 Subject: [PATCH 2/2] remove extranneous docs --- .../platforms/python/integrations/celery/crons.mdx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/docs/platforms/python/integrations/celery/crons.mdx b/docs/platforms/python/integrations/celery/crons.mdx index 7aef65dc5294c..a70968ea44c79 100644 --- a/docs/platforms/python/integrations/celery/crons.mdx +++ b/docs/platforms/python/integrations/celery/crons.mdx @@ -155,17 +155,3 @@ def init_sentry(**kwargs): def tell_the_world(msg): print(msg) ``` - -You can also pass additional monitor configuration, including ownership: - -```python {diff} {filename:tasks.py} -+monitor_config = { -+ "schedule": {"type": "crontab", "value": "0 0 * * *"}, -+ "owner": "team:6", -+} - -@app.task -+@sentry_sdk.monitor(monitor_slug='', monitor_config=monitor_config) -def tell_the_world(msg): - print(msg) -```