howardyoo opened a new issue, #42429:
URL: https://github.com/apache/airflow/issues/42429

   ### Apache Airflow version
   
   2.10.1
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   # Overview
   Currently, the span link that would point to the calling origin (scheduler 
job loop), points to the root span of the scheduler job loop, rather than the 
correct span itself, sometimes making it not so obvious for user to locate the 
related execution point of the span:
   <img width="1275" alt="image" 
src="https://github.com/user-attachments/assets/0a661f1a-4193-4551-8440-6df247621570";>
   
   
   
   ### What you think should happen instead?
   
   What the span link should have pointed to, is not the root span, but rather 
the actual span where the task instance was called by the scheduler:
   <img width="1276" alt="image" 
src="https://github.com/user-attachments/assets/59b88cde-a4a9-4cb7-9ef3-7410cd252285";>
   
   
   
   ### How to reproduce
   
   - Enable the OTEL traces
   - Run a DAG
   - Monitor that the taskinstance span's link points to the root span of the 
scheduler job loop.
   
   ### Operating System
   
   Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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