turbaszek commented on a change in pull request #14146:
URL: https://github.com/apache/airflow/pull/14146#discussion_r580402866



##########
File path: docs/apache-airflow/lineage.rst
##########
@@ -95,3 +95,24 @@ has outlets defined (e.g. by using ``add_outlets(..)`` or 
has out of the box sup
     f_in > run_this | (run_this_last > outlets)
 
 .. _precedence: https://docs.python.org/3/reference/expressions.html
+
+
+Lineage Backend
+---------------
+
+It's possible to push the lineage metrics to a custom backend by providing an 
instance of a LinageBackend in the config:
+
+.. code-block:: ini
+
+  [lineage]
+  backend = my.lineage.CustomBackend
+
+The backend should inherit from ``airflow.lineage.LineageBackend``.
+
+.. code-block:: python
+
+  from airflow.lineage.backend import LineageBackend
+
+  class ExampleBackend(LineageBackend):
+    def send_lineage(self, operator=None, inlets=None, outlets=None, 
context=None):

Review comment:
       ```suggestion
       def send_lineage(self, operator, inlets=None, outlets=None, 
context=None):
   ```
   Operator will never be `None` I think




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to