souradeep07 commented on issue #55910:
URL: https://github.com/apache/airflow/issues/55910#issuecomment-6269342869

   I've opened #75100 for this, following the approach suggested above: each 
frame in the JSON traceback gets a `line` field (read via `linecache`, as the 
stdlib `traceback` module does), and the UI shows it under the frame.
   
   On the open questions:
   - **Scope:** this isn't limited to deployments that opt into JSON output. 
The task process always logs JSON to the supervisor, so every task log viewed 
in the UI is affected.
   - **Size:** it adds one stripped source line per frame, only when an 
exception is logged. Frames without available source are unchanged, and plain 
log lines are unaffected (the PR has a small benchmark).
   
   Happy to change the shape if maintainers would prefer something else.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to