Skip to main content

Data Lineage Tracker Design

Design a data lineage tracking system that maps data flow from source to dashboard with column-level lineage and impact analysis.

Fill in the placeholders

Edit the values, then copy your finished prompt.

Your Prompt
prompt.txt

                                

What this prompt does

This prompt makes the AI design a data lineage tracking system that can answer "what breaks if we change this column" without anyone maintaining diagrams by hand. You describe the [data_platform], the [pipeline_count], [table_count], [dashboard_count], and [consumer_count], and the model builds a lineage metadata model capturing source → pipeline → table → column → dashboard relationships with transformation notes at each hop, stored in [lineage_storage].

The structure works because it derives lineage from artifacts you already produce rather than from hand-drawn graphs. It extracts from [extraction_sources] — parsing SQL, reading dbt refs, capturing Airflow dependencies — to build column-level lineage that traces a column like [example_output_column] back through [hop_count] hops. Impact analysis takes a proposed change to [impact_source] and lists every affected downstream table, pipeline, and dashboard with severity. A visualization API returns graph data in [graph_format], a freshness overlay flags stale-upstream nodes, and [notification_system] alerts owners. Column-level impact is what turns a scary migration into a routine one.

When to use it

  • Stakeholders keep asking "what depends on this column" and you want a system that answers it.
  • You're planning a schema migration and need to know every downstream table, pipeline, and dashboard affected.
  • You want lineage extracted automatically from dbt, query history, and orchestrator metadata, not drawn by hand.
  • You need column-level (not just table-level) tracing through several hops.
  • You want an interactive lineage diagram fed by a graph API.
  • You need to notify the right data owners when upstream changes could break their assets.

Example output

Expect a design: a lineage metadata model and [lineage_storage] schema, an extraction approach parsing [extraction_sources] to populate it, a column-level trace example for [example_output_column] across [hop_count] hops, an impact-analysis routine for [impact_source] with severity classification, a visualization API returning [graph_format] nodes and edges, a freshness/staleness overlay, and [notification_system] integration routing alerts to the right owners.

Pro tips

  • Lean on [extraction_sources] you already have (dbt manifest, query history) — hand-maintained lineage rots the moment a model changes, automated lineage stays current.
  • Insist on column-level, not just table-level, tracing; table-level lineage can't tell you whether your specific [example_output_column] is actually affected by a change.
  • Tune [hop_count] to your real depth — stopping too shallow misses the dashboard at the end of the chain that actually breaks.
  • Make impact-analysis severity meaningful so a rename touching one stale report isn't ranked the same as one feeding finance dashboards.
  • Use the freshness overlay to catch the subtle bug where a downstream node is fresher than its upstream — a sign of an out-of-order or broken refresh.
  • Route [notification_system] alerts by data domain so owners get only the upstream changes that touch their assets, not every change everywhere.

Frequently Asked Questions

Does this trace lineage at the column level or just table level?
It builds column-level lineage that traces a specific output column back through transformations to its original source columns across multiple hops. Column-level tracing matters because table-level lineage alone can't tell you whether your particular column is affected by a proposed change.
Where does the lineage data come from?
It is extracted automatically from artifacts you already produce, such as a dbt manifest, orchestrator DAG metadata, warehouse query history, and BI tool definitions. Deriving lineage from these sources keeps it current, whereas hand-maintained lineage diagrams rot the moment a model changes.
How does the impact analysis work?
Given a proposed change to a source — for example adding or renaming a column in a raw table — it identifies every downstream table, pipeline, and dashboard that would be affected, with severity classification. This is what turns a risky migration into a routine, well-scoped one.
Can the lineage be visualized?
Yes, the design includes a visualization API that returns graph data as nodes and edges in a format suited to rendering an interactive diagram. A freshness overlay annotates each node with its last refresh time and highlights cases where a downstream node is fresher than its upstream.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

More in Data Engineering & ETL Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support