René's URL Explorer Experiment


Title: Automatically create monitors when using Redbeat · Issue #2616 · getsentry/sentry-python · GitHub

Open Graph Title: Automatically create monitors when using Redbeat · Issue #2616 · getsentry/sentry-python

X Title: Automatically create monitors when using Redbeat · Issue #2616 · getsentry/sentry-python

Description: Environment SaaS (https://sentry.io/) Steps to Reproduce We're using Python with Celery and Redbeat and following the docs for setup. Using either the autodiscover or manual @monitor instrumentation outlined in the docs, we are not havin...

Open Graph Description: Environment SaaS (https://sentry.io/) Steps to Reproduce We're using Python with Celery and Redbeat and following the docs for setup. Using either the autodiscover or manual @monitor instrumentatio...

X Description: Environment SaaS (https://sentry.io/) Steps to Reproduce We're using Python with Celery and Redbeat and following the docs for setup. Using either the autodiscover or manual @monitor instrument...

Opengraph URL: https://github.com/getsentry/sentry-python/issues/2616

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Automatically create monitors when using Redbeat","articleBody":"### Environment\r\n\r\nSaaS (https://sentry.io/)\r\n\r\n### Steps to Reproduce\r\n\r\nWe're using Python with [Celery] and [Redbeat] and following the [docs] for setup. Using _either_ the autodiscover or manual `@monitor` instrumentation outlined in the docs, we are not having monitors in our Sentry UI automatically created. But manually creating them confirms that the data does come into Sentry—as soon as they're created we can see data for them in the UI, but only from that point forward.\r\n\r\nI've been talking to Sentry support about this and was asked to create an Issue. Unfortunately our repo is private but our setup is pretty straightforward. Here's the gist of what we've got:\r\n\r\n`requirements.txt`:\r\n\r\n```\r\ncelery==5.2.6\r\ncelery-redbeat==2.0.0\r\n```\r\n\r\n`worker.py`\r\n\r\n```py\r\nfrom celery import Celery\r\nfrom celery.signals import celeryd_init\r\nfrom celery.schedules import crontab\r\nimport sentry_sdk\r\nfrom sentry_sdk.crons.decorator import monitor\r\nfrom sentry_sdk.integrations.celery import CeleryIntegration\r\n\r\nfrom myco import _my_celery_task, get_env_var, LockInUse, get_redis_url\r\n\r\napp = Celery(__name__, broker=get_redis_url(database='celery'))\r\n\r\n@celeryd_init.connect\r\ndef init_sentry(**_kwargs):\r\n    env = get_env_var('APP_ENV', False)\r\n    if not env:\r\n        print('APP_ENV not set, defaulting to development')\r\n        env = 'development'\r\n    if env not in ['development', 'test']:\r\n        sentry_sdk.init(\r\n            dsn=\"\u003cDSN@ingest.sentry.io>\", # obviously this is redacted\r\n\r\n            environment=env,\r\n            release=get_env_var('SENTRY_RELEASE_VERSION', False) or 'unknown',\r\n\r\n            ignore_errors=[LockInUse],\r\n\r\n            integrations=[CeleryIntegration()],\r\n\r\n            # Set traces_sample_rate to 1.0 to capture 100%\r\n            # of transactions for performance monitoring.\r\n            # We recommend adjusting this value in production,\r\n            traces_sample_rate=0.005,\r\n        )\r\n\r\n# ...\r\n\r\n\r\n@app.task\r\n@monitor(monitor_slug='my_celery_task')\r\ndef my_celery_task():\r\n    return _my_celery_task()\r\n\r\n# ...\r\n\r\napp.conf.redbeat_redis_url = get_redis_url(database='celery')\r\napp.conf.beat_scheduler = 'redbeat.RedBeatScheduler'\r\napp.conf.beat_schedule = {\r\n    'my-celery-task': {\r\n        'task': 'worker.my_celery_task',\r\n        'schedule': crontab(minute='0', hour='0', day_of_week='1'),\r\n    },\r\n    # ...\r\n}\r\n```\r\n\r\n[celery]: https://docs.celeryq.dev/en/stable/\r\n[redbeat]: https://pypi.org/project/celery-redbeat/\r\n[docs]: https://docs.sentry.io/platforms/python/crons/\r\n\r\n### Expected Result\r\n\r\nCron job monitors are automatically created in Sentry on deploy, or at least when they execute\r\n\r\n### Actual Result\r\n\r\nNo monitors are created\r\n\r\n### Product Area\r\n\r\nCrons\r\n\r\n### Link\r\n\r\n_No response_\r\n\r\n### DSN\r\n\r\n_No response_\r\n\r\n### Version\r\n\r\n_No response_","author":{"url":"https://github.com/bensaufley","@type":"Person","name":"bensaufley"},"datePublished":"2023-12-20T19:49:37Z","url":"https://github.com/getsentry/sentry-python/issues/2616"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:423583ab-03d2-c8f2-67cb-2201c6d22949
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBBD6:D9951:308328:43A4D5:6B008B09
html-safe-noncea14e9593f9e092fea02269b77accc929f315fef82e779d74d4087a5919eb0e5c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkQ2OkQ5OTUxOjMwODMyODo0M0E0RDU6NkIwMDhCMDkiLCJ2aXNpdG9yX2lkIjoiNjM2NzkzMjI3MTA3MjE1MjMyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1a985b7dddb9f0272b6613083d9a54f3337d4656fa72841e2d42220dfef345f4
hovercard-subject-tagissue:2063969763
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/2616/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7fccd30619c2ca8eb2e4929b00dbded76331651d210707e103bfc5c95fd59cb3/getsentry/sentry-python/issues/2616
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7fccd30619c2ca8eb2e4929b00dbded76331651d210707e103bfc5c95fd59cb3/getsentry/sentry-python/issues/2616
og:image:altEnvironment SaaS (https://sentry.io/) Steps to Reproduce We're using Python with Celery and Redbeat and following the docs for setup. Using either the autodiscover or manual @monitor instrumentatio...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebensaufley
hostnamegithub.com
expected-hostnamegithub.com
Nonec710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebe616a2a6ec1c609d6e002896dff5352d5c5f28b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/issues/2616#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fissues%2F2616
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fissues%2F2616
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/issues/2616
Reloadhttps://github.com/getsentry/sentry-python/issues/2616
Reloadhttps://github.com/getsentry/sentry-python/issues/2616
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests41 (41)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/2616
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/2616
#2643https://github.com/getsentry/sentry-python/pull/2643
Automatically create monitors when using Redbeathttps://github.com/getsentry/sentry-python/issues/2616#top
#2643https://github.com/getsentry/sentry-python/pull/2643
https://github.com/sentrivana
Integration: Celeryhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Celery%22
https://github.com/bensaufley
bensaufleyhttps://github.com/bensaufley
on Dec 20, 2023https://github.com/getsentry/sentry-python/issues/2616#issue-2063969763
https://sentry.io/https://sentry.io/
Celeryhttps://docs.celeryq.dev/en/stable/
Redbeathttps://pypi.org/project/celery-redbeat/
docshttps://docs.sentry.io/platforms/python/crons/
Nexthttps://github.com/getsentry/sentry-python/issues/2616?timeline_page=1
https://github.com/apps/getsantry
getsantryhttps://github.com/apps/getsantry
on Dec 20, 2023https://github.com/getsentry/sentry-python/issues/2616#issuecomment-1875310837
routinghttps://open.sentry.io/triage/#2-route
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Dec 20, 2023https://github.com/getsentry/sentry-python/issues/2616#event-11378770861
https://github.com/apps/getsantry
getsantryhttps://github.com/apps/getsantry
on Dec 20, 2023https://github.com/getsentry/sentry-python/issues/2616#issuecomment-1875310841
triagehttps://develop.sentry.dev/processing-tickets/#3-triage
hubertdeng123https://github.com/hubertdeng123
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Dec 21, 2023https://github.com/getsentry/sentry-python/issues/2616#event-11378770896
gaprlhttps://github.com/gaprl
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Dec 22, 2023https://github.com/getsentry/sentry-python/issues/2616#event-11378770918
https://github.com/gaprl
gaprlhttps://github.com/gaprl
on Dec 22, 2023https://github.com/getsentry/sentry-python/issues/2616#issuecomment-1875310845
@antonpirkerhttps://github.com/antonpirker
https://github.com/IevgeniiB
IevgeniiBhttps://github.com/IevgeniiB
on Dec 28, 2023https://github.com/getsentry/sentry-python/issues/2616#issuecomment-1875310850
https://private-user-images.githubusercontent.com/5693175/293118829-9fa04811-2236-4668-ab69-9ba26f5d5023.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUxOTgwMDYsIm5iZiI6MTc5NTE5NzcwNiwicGF0aCI6Ii81NjkzMTc1LzI5MzExODgyOS05ZmEwNDgxMS0yMjM2LTQ2NjgtYWI2OS05YmEyNmY1ZDUwMjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjBUMTgwMTQ2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODkyYTdiODk5ODExZWRkMDA3MzQ5NWQ3OWNhZjYyMjg5YmU3MDY3YzFhMWNjODY1MWM5ZGUyYTAwYzUwNmU3OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.Wnq3-E5wzkHna1mLljj6yHPy-zC9IXoFtIG7d8_pulU
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Dec 28, 2023https://github.com/getsentry/sentry-python/issues/2616#event-11378770941
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616#issuecomment-1875310854
@IevgeniiBhttps://github.com/IevgeniiB
https://github.com/getsentry/sentry-python/https://github.com/getsentry/sentry-python/
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616#event-11378770968
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616#issuecomment-1875310858
@bensaufleyhttps://github.com/bensaufley
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616#event-11378770971
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616#event-14890894507
antonpirkerhttps://github.com/antonpirker
getsentry/sentryhttps://github.com/getsentry/sentry
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616#event-11378771266
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616#issuecomment-1875438310
https://github.com/sibson/redbeat/blob/v2.0.0/redbeat/schedulers.py#L450https://github.com/sibson/redbeat/blob/v2.0.0/redbeat/schedulers.py#L450
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616#event-11379641380
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616
https://github.com/IevgeniiB
IevgeniiBhttps://github.com/IevgeniiB
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616#issuecomment-1875599391
@IevgeniiBhttps://github.com/IevgeniiB
https://github.com/getsentry/sentry-python/https://github.com/getsentry/sentry-python/
@antonpirkerhttps://github.com/antonpirker
#2617https://github.com/getsentry/sentry-python/issues/2617
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616#event-11380745370
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 3, 2024https://github.com/getsentry/sentry-python/issues/2616
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
on Jan 4, 2024https://github.com/getsentry/sentry-python/issues/2616#issuecomment-1877006949
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 4, 2024https://github.com/getsentry/sentry-python/issues/2616#event-11389222754
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 4, 2024https://github.com/getsentry/sentry-python/issues/2616
antonpirkerhttps://github.com/antonpirker
on Jan 4, 2024https://github.com/getsentry/sentry-python/issues/2616#event-11389225141
sentrivanahttps://github.com/sentrivana
on Mar 14, 2024https://github.com/getsentry/sentry-python/issues/2616#event-12117369494
sentrivanahttps://github.com/sentrivana
enhancementhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Mar 14, 2024https://github.com/getsentry/sentry-python/issues/2616#event-12117653519
sentrivanahttps://github.com/sentrivana
on Mar 14, 2024https://github.com/getsentry/sentry-python/issues/2616#event-12117667043
sentrivanahttps://github.com/sentrivana
Integration: Celeryhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Celery%22
on Mar 14, 2024https://github.com/getsentry/sentry-python/issues/2616#event-12117669159
sentrivanahttps://github.com/sentrivana
completedhttps://github.com/getsentry/sentry-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#2643https://github.com/getsentry/sentry-python/pull/2643
on Mar 18, 2024https://github.com/getsentry/sentry-python/issues/2616#event-12155095558
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-python/issues/2616
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/2616
sentrivanahttps://github.com/sentrivana
Integration: Celeryhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Celery%22
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.