-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AIRFLOW-4741] Include Sentry into core Airflow #5407
Conversation
@tiopi CI is sad due to a couple of pylint errors: https://travis-ci.org/apache/airflow/jobs/544497697 edit: Wrong mentions. Sorry! My github UI bugged out. 😥 |
Codecov Report
@@ Coverage Diff @@
## master #5407 +/- ##
=========================================
Coverage ? 79.82%
=========================================
Files ? 609
Lines ? 35126
Branches ? 0
=========================================
Hits ? 28040
Misses ? 7086
Partials ? 0
Continue to review full report at Codecov.
|
38378a9
to
6dd09d5
Compare
I got the tests to finally pass! |
a070b4b
to
b7a1c76
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursory glance.
7cdf31f
to
069d34d
Compare
83cd366
to
7f296b0
Compare
Is this PR still blocked on any requested change? If so, I would like to help so it can be merged for our internal use. |
It's blocked on me finding the time to review it (but a lot of my available time has been taking up with Release Management work). |
374c344
to
ec878b2
Compare
Looks like all review feedbacks have been addressed, any blocker I could help resolve to get it merged? |
326af63
to
99ada8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have done a couple of passes on this and it's LGTM to me at this point barring a minor doc nit.
@ashb WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry it took me so long to review this.
I have some questions about the data we sent to Sentry that I think would be cleared up by some example screenshots.
we are almost there! @tiopi let me know if there is anything I can help to get it over the finish line. |
This commit intends to add Sentry to the core functionality of Airflow. It takes an approach like Statsd for simple integration. The commit makes use of tagging and breadcrumbs for more error information. Add testing for tagging and breadcrumbs. Add documentation for Airflow Error tracking.
… and fixed documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took many months (sorry!) but we got there in the end!
great job @tiopi! |
This commit intends to add Sentry to the core functionality of Airflow. It takes an approach like Statsd for simple integration. The commit makes use of tagging and breadcrumbs for more error information. (cherry picked from commit dc3bfe4)
This commit intends to add Sentry to the core functionality of Airflow. It takes an approach like Statsd for simple integration. The commit makes use of tagging and breadcrumbs for more error information. (cherry picked from commit dc3bfe4)
Make sure you have checked all steps below.
Jira
https://issues.apache.org/jira/browse/AIRFLOW-4741
Description
This PR is to add Sentry SDK functionality to Airflow. The functionality includes adding tags per task event and breadcrumbs of previous tasks that ran on the DAG.
Differences between #5416 and #5407:
#5416: PR focuses on adding Sentry functionality to specific DAGs. This is achieved by adding a sentry hook to the contrib folder. Users can then simply call the hook with their
SENTRY_DSN
for each DAG.#5407: PR focuses on adding Sentry to the Airflow ecosystem. Its aim is to handle all errors within airflow (Scheduler, worker, DAGs, tasks). (This is the continuation of #5382, which I closed by accident.)
Tests
sentry.py
.Commits
Documentation
error.rst
.Code Quality
flake8