New advertisers: 50% off your first month with code FIRSTMONTHSee slots
astronomer avatar

Creating Openlineage Extractors

Write custom OpenLineage extractors that capture lineage from Airflow operators lacking built-in support.

skills.sh installs
972
GitHub stars
463
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers two approaches: adding OpenLineage methods to operators you own, and writing custom extractors for third-party operators
  • Includes a method reference for get_openlineage_facets_on_start, _on_complete, and _on_failure, plus extractor hooks _execute_extraction and extract_on_complete
  • Enforces a preference for OpenLineage methods over extractors, since extractors are harder to write and debug
  • Designed for Airflow DAG authors who need column-level or complex lineage beyond inlets and outlets, including Astro deployments

Install

$ npx -y skills add astronomer/agents --skill creating-openlineage-extractors -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Creating OpenLineage Extractors

This skill guides you through creating custom OpenLineage extractors to capture lineage from Airflow operators that don't have built-in support.

Reference: See the OpenLineage provider developer guide for the latest patterns and list of supported operators/hooks.

When to Use Each Approach

ScenarioApproach
Operator you own/maintainOpenLineage Methods (recommended, simplest)
Third-party operator you can't modifyCustom Extractor
Need column-level lineageOpenLineage Methods or Custom Extractor
Complex extraction logicOpenLineage Methods or Custom Extractor
Simple table-level lineageInlets/Outlets (simplest, but lowest priority)

Important: Always prefer OpenLineage methods over custom extractors when possible. Extractors are harder to write, easier to diverge from operator behavior after changes, and harder to debug.

On Astro

Details

Repository
github.com/astronomer/agents
Categories
Data Science & Analytics, Technical Documentation
First seen
May 16, 2026

More from astronomer/agents

All 24

Similar to Creating Openlineage Extractors

More Data Science & Analytics