Record lineage
Learn how to trace a processed meter record to its source usage events and review the processing steps that produced it.
Record lineage shows where a processed meter record came from. Record lineage answers one question: where did this number come from? Start with a record from a meter run, then trace backward through the processing path to contributing usage events.
Use lineage to investigate a customer question about a rated record, understand an unexpected value during testing, support an audit or compliance request, or inspect an aggregation result. Lineage complements Audit Trail. Use Audit Trail to find failed or sampled records for a run, then use lineage to explain how a selected output record was built.
| Situation | Without lineage | With lineage |
|---|---|---|
| A customer disputes an invoice line | Export raw usage and reconstruct the calculation manually. | Open the rated record and identify its contributing usage events. |
| A value is unexpected during testing | Add temporary logging and run the meter again. | Trace the record through its processing steps and see where the value changed. |
| An audit or compliance request requires source evidence | Reconcile records in a spreadsheet. | Identify the source events for an output record. |
| A complex aggregation meter is difficult to validate | Use trial and error to inspect window results. | Inspect which records landed in an aggregation window. |
Before you begin
Confirm that the following requirements are met before you use lineage.
| Requirement | Details |
|---|---|
| Lineage is activated for your tenant | Contact Zuora Global Support if lineage controls are not visible in Mediation. |
| The meter uses full sampling | Set the sample ratio to 1.0. When lineage is activated, deployment is blocked if the sample ratio is lower. |
| You have the required meter permissions | Lineage requires permission to view, run, or configure meters and events. |
| You have the run session ID and record trace ID | Find these in Audit Trail or the meter run record list. |
Debug runs use full sampling automatically. You can use a debug run to validate a meter before activating lineage on a production meter.
How lineage works
Each processed record has a traceId. It describes the record’s path through the meter, starting with the original usage event and adding a segment at each processing step. The trace ID can distinguish multiple usage rows in one event and multiple outputs from a step.
For example, a trace ID can look like this: 771061e8-aa3d-4b12-a4a2-5296c659ae12|0_a_b1.
| Trace ID part | Example | Meaning |
|---|---|---|
| Usage event ID | 771061e8-… | Identifies the original ingested usage event. |
| Sequence | 0 | Identifies a row within an event when one request contains multiple usage rows. |
| Processing segments | _a_b1 | Identifies the steps the record passed through. An index such as b1 indicates that a step produced more than one output. |
For a simple meter that does not aggregate or correlate records, lineage resolves the original usage event from the trace ID alone. When many records combine into one result, such as in a daily rollup or correlator, lineage expands the contributing inputs for that window.
Lineage traces backward from the output record you select. It does not trace forward from a source event to show what the event became.
Lineage capabilities
| Capability | Question answered | Where to use it |
|---|---|---|
| Source list | Which original usage events produced this record? | Open the source view to see the original usage event IDs. For aggregated paths, the list shows distinct usage events. |
| Lineage graph | What path did the record take, and what did it look like at each step? | Review the graph and select a processing step. |
| Payload lookup | What data was present for a specific record at a step? | Expand the available input or output data for the selected step. |
| Contributor list | Which inputs did this aggregate combine? | Open the aggregate’s contributor list and page through its inputs. |