(agents) add Sentry instrumentation for agents

Add Sentry observability to the `agents`. Introduce a dedicated
`observability.py` module. Refactor both agents to use the shared
observability layer and extract task helpers into a new `tasks.py` module,
making task execution easier to instrument and maintain.
This commit is contained in:
leo
2026-07-07 14:48:24 +02:00
committed by aleb_the_flash
parent e6f0ff5112
commit d43b335546
10 changed files with 335 additions and 139 deletions
+1 -1
View File
@@ -1132,7 +1132,7 @@ class Base(Configuration):
if cls.SENTRY_DSN is not None:
sentry_sdk.init(
dsn=cls.SENTRY_DSN,
environment=cls.__name__.lower(),
environment=cls.__name__.lower(), # build, test, development, production
release=get_release(),
integrations=[DjangoIntegration()],
)