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


##########
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:
   Removed the source-code-location section from 
providers/openlineage/docs/guides/developer.rst as 
requested.\n\n---\nDrafted-by: OpenAI Codex (GPT-5.5) (no human review before 
posting)



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