Skip to content

Commit

Permalink
Address Julian's feedback on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Sep 6, 2023
1 parent 9e6e1f1 commit 4844d84
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions docs/configuration/lineage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ and virtualenv execution methods (read `execution modes <../getting_started/exec
To emit lineage events, Cosmos can use one of the following:

1. Airflow 2.7 `built-in support to OpenLineage <https://airflow.apache.org/docs/apache-airflow-providers-openlineage/1.0.2/guides/user.html>`_, or
2. The `openlineage-airflow <https://openlineage.io/docs/integrations/airflow/>`_ package
2. `Additional libraries <https://openlineage.io/docs/integrations/airflow/>`_.

No change to the user DAG files is required to use OpenLineage.

Expand All @@ -20,14 +20,22 @@ Installation

If using Airflow 2.7, no other dependency is required.

Otherwise, install the Python package ``astronomer-cosmos[openlineage]`` or ``openlineage-airflow``.
Otherwise, install Cosmos using ``astronomer-cosmos[openlineage]``.


Namespace configuration
-----------------------
Configuration
-------------

If using Airflow 2.7, follow `these instructions <https://airflow.apache.org/docs/apache-airflow-providers-openlineage/1.0.2/guides/user.html>`_ on how to configure OpenLineage.

Otherwise, follow `these instructions <https://openlineage.io/docs/integrations/airflow/>`_.


Namespace
.........

Cosmos will use the Airflow ``[openlineage]`` ``namespace`` property as a namespace, `if available <https://airflow.apache.org/docs/apache-airflow-providers-openlineage/1.0.2/guides/user.html>`_.

Otherwise, it attempts to use the environment variable ``OPENLINEAGE_NAMESPACE`` as the namespace.

If not defined, it uses ``"default"`` as the namespace.
Finally, if neither are defined, it uses ``"default"`` as the namespace.

0 comments on commit 4844d84

Please sign in to comment.