#sentry

[ follow ]
fromStreamHacker
7 hours ago

Monitoring Celery Tasks with Sentry

Sentry is a great tool for monitoring celery tasks, and alerting when they fail or don't run on time. But it requires a bit of work to setup properly. Below is some sample code for setting up sentry monitoring of periodic tasks, followed by an explanation. import math import sentry_sdk from celery import signals from sentry_sdk import monitor from sentry_sdk.integrations.celery import CeleryIntegration @signals.beat_init.connect # if you use beats @signals.celeryd_init.connect def init_sentry(**kwargs): sentry_sdk.init( dsn=..., integrations=[ CeleryIntegration(monitor_beat_tasks=False) ] ) @signals.worker_shutdown.connect @signals.task_postrun.connect def flush_sentry(**kwargs): sentry_sdk.flush(timeout=5) def add_periodic_task(celery, schedule, task): max_runtime = math.ceil(schedule * 4 / 60) monitor_config = { "recovery_threshold": 1, "failure_issue_threshold": 10, "checkin_margin": max_runtime, "max_runtime": max_runtime, "schedule": { "type": "interval", "value": math.ceil(schedule / 60.0) "unit": "minute" } } name = task.__name__ task = monitor(monitor_slug=name, monitor_config=monitor_config)(task) celery.add_periodic_task(schedule, celery.task(task).s(), name=name)
Python
Python
fromPythonbytes
1 month ago

Auto-activate Python virtual environments for any project

Astral is enhancing Python packaging and management tools for developers.
Software development
fromDevOps.com
1 month ago

Sentry Adds Tool for Monitoring MCP Servers to APM Platform - DevOps.com

Sentry's APM platform now supports monitoring Model Context Protocol (MCP) servers, enhancing visibility for AI application data access.
#marvel
NYC startup
fromBusiness Insider
5 months ago

Unicorn enterprise startup Sentry is acquiring Emerge Tools, a YC-backed suite of mobile app developer tools that counts OpenAI as a customer

Sentry is acquiring Emerge Tools to enhance its app performance tools and expand distribution to a larger developer audience.
Atlanta Falcons
fromInverse
5 months ago

'Thunderbolts*' Just Retconned Sentry For The Better

Thunderbolts confronts themes of mental health through the character of Sentry, presenting complexity rarely explored in Marvel films.
Boston Bruins
fromtime.com
5 months ago

A Primer on Sentry a.k.a. the Void From Thunderbolts*

Bob becomes a superhuman named Sentry through unstable experiments, illustrating the dangers of tampering with human potential.
[ Load more ]