Skip to content

[v3-4-test] Show source code lines in task log tracebacks (#75100) - #75355

Merged
bbovenzi merged 1 commit into
v3-4-testfrom
backport-79d3afc-v3-4-test
Oct 22, 2026
Merged

bbovenzi merged 1 commit into
v3-4-testfrom
backport-79d3afc-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

structlog's ExceptionDictTransformer only records each frame's filename,
line number and function name, so tracebacks in task logs (which are always
written as JSON) no longer showed the line of code that was running. Add it
via linecache, as the stdlib traceback module does, and show it under each
frame in the UI log view.
(cherry picked from commit 79d3afc)

Co-authored-by: Souradeep Biswas [email protected]
closes: #55910

structlog's ExceptionDictTransformer only records each frame's filename,
line number and function name, so tracebacks in task logs (which are always
written as JSON) no longer showed the line of code that was running. Add it
via linecache, as the stdlib traceback module does, and show it under each
frame in the UI log view.
(cherry picked from commit 79d3afc)

Co-authored-by: Souradeep Biswas <[email protected]>
closes: #55910
@boring-cyborg boring-cyborg Bot added area:logging area:UI Related to UI/UX. For Frontend Developers. labels Oct 21, 2026
@vatsrahul1001
vatsrahul1001 marked this pull request as ready for review October 22, 2026 09:58
@bbovenzi
bbovenzi merged commit 37fcddf into v3-4-test Oct 22, 2026
125 of 136 checks passed
@bbovenzi
bbovenzi deleted the backport-79d3afc-v3-4-test branch October 22, 2026 13:23
@github-actions github-actions Bot added this to the Airflow 3.4.1 milestone Oct 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.4.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:logging area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants