kacpermuda commented on code in PR #68588:
URL: https://github.com/apache/airflow/pull/68588#discussion_r3551233763


##########
providers/openlineage/docs/guides/developer.rst:
##########
@@ -242,6 +242,28 @@ you might want to attach ``SqlJobFacet`` if your Operator 
is executing SQL.
 
 To learn more about facets in OpenLineage see 
:ref:`configuration_custom_facets:openlineage`.
 
+Dag source code location
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+The OpenLineage provider emits the OpenLineage ``sourceCodeLocation`` job 
facet when a Dag defines ``source_code_location``.
+The facet is included on Dag-run events and on task events emitted for tasks 
in that Dag.
+
+.. code-block:: python
+
+    from airflow.sdk import DAG, SourceCodeLocation
+
+    with DAG(
+        dag_id="example_operator",
+        schedule="@once",
+        source_code_location=SourceCodeLocation(
+            repo_url="https://github.com/apache/airflow.git";,
+            path="dags/example_operator.py",
+            version="abc123",
+            branch="main",
+        ),
+    ):
+        ...
+

Review Comment:
   Let's not include that in developer.rst. Let's skip the doc for now, I'll 
figure out where to best put it as we do not have a good place now.



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