Skip to content

Reimplement Sentry integration in Task SDK - #57032

Merged
uranusjr merged 7 commits into
apache:mainfrom
astronomer:sentry-in-sdk
Nov 4, 2025
Merged

Reimplement Sentry integration in Task SDK#57032
uranusjr merged 7 commits into
apache:mainfrom
astronomer:sentry-in-sdk

Conversation

@uranusjr

@uranusjr uranusjr commented Oct 22, 2025

Copy link
Copy Markdown
Member

Fix #52368.

@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:task-sdk labels Oct 22, 2025
@uranusjr
uranusjr force-pushed the sentry-in-sdk branch 12 times, most recently from 6a7a4f6 to 9d04993 Compare October 29, 2025 02:48
@uranusjr
uranusjr marked this pull request as ready for review October 29, 2025 04:15
@uranusjr
uranusjr force-pushed the sentry-in-sdk branch 2 times, most recently from 019ae56 to 9f40e52 Compare October 30, 2025 04:11
Comment thread task-sdk/src/airflow/sdk/execution_time/sentry/configured.py
Comment thread task-sdk/src/airflow/sdk/execution_time/sentry/configured.py
The integration logic is moved from core into task sdk so it can be run
at runtime. Things that used to rely on database access have been
rewritten to use the execution API instead.

Not yet applied to anything. Tests to come.
This is needed to reflect core dep changes since we've removed Sentry
(and its Flask integration) from core.
Sentry tends to mess with logging (seems to be related to the debug
helpers it runs AT IMPORT TIME), which in turn messes up out supervisor
tests.

The Sentry integration tests are now rewritten to not actually use the
Sentry SDK at all to avoid this issue. The problem now is I have no real
way to actually know if the integration actually works anymore. We'll
need to figure that out in another way.
The Sentry integration need to not import other parts at top-level.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:task-sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Errors are not sent to Sentry in Airflow 3.0.2

4 participants