Hi, all! I'm setting up lineage collection from Ai...
# ingestion
r
Hi, all! I'm setting up lineage collection from Airflow. Is it possible to pass some usage data (like number of records processed) along with the data flow?
b
Hey there!
How are you currently collecting information? Are you using the DataHubEmitterOperator as shown here? Or lineage backend?
r
Hi, missed your message, sorry. Nope, I'm using inlets/outlets of standard Airflow operator, as it was shown in examples. This is a piece of code:
from datahub_provider.entities import Dataset
UserLoadOperator(
   
task_id='user-load',
   
dag=dag,
   
source_conn_id='jira_ts',
   
destination_conn_id='ts_data',
   
inlets={'datasets': [
       
Dataset('jira.users', 'users'),
       
Dataset('jira.confluence', 'confluence')
   
]},
   
outlets={'datasets': [
       
Dataset('postgres.timesheet2', 'public.user_data')
   
]}
)