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

   ### Description
   
   * Make `task` and `task_instance` fields of `AirflowRunFacet` optional.
   * Fill up `AirflowRunFacet` for DAG run events.
   
   ### Use case/motivation
   
   Currently `AirflowRunFacet` is present only RunEvents produces by Airflow 
tasks (containing fields `dag`, `dag_run`, `task`, `task_instance`). But DAG 
can be started too, and it currently contains only `AirflowJobFacet` (fields 
like `taskTree`, `taskGroups` and so on).
   
   Having `dag_run` field allows custom OpenLineage backend implementations to 
have URL for Airflow UI page of a particular DagRun, as well as have custom 
logic based on `run_type` field value.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a 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