Welcome to Zuora Product Documentation

Explore our rich library of product information

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.

Record lineage overview

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.

SituationWithout lineageWith lineage
A customer disputes an invoice lineExport raw usage and reconstruct the calculation manually.Open the rated record and identify its contributing usage events.
A value is unexpected during testingAdd 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 evidenceReconcile records in a spreadsheet.Identify the source events for an output record.
A complex aggregation meter is difficult to validateUse 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.

RequirementDetails
Lineage is activated for your tenantContact Zuora Global Support if lineage controls are not visible in Mediation.
The meter uses full samplingSet the sample ratio to 1.0. When lineage is activated, deployment is blocked if the sample ratio is lower.
You have the required meter permissionsLineage requires permission to view, run, or configure meters and events.
You have the run session ID and record trace IDFind these in Audit Trail or the meter run record list.
Note:

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 partExampleMeaning
Usage event ID771061e8-…Identifies the original ingested usage event.
Sequence0Identifies a row within an event when one request contains multiple usage rows.
Processing segments_a_b1Identifies 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

CapabilityQuestion answeredWhere to use it
Source listWhich 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 graphWhat path did the record take, and what did it look like at each step?Review the graph and select a processing step.
Payload lookupWhat data was present for a specific record at a step?Expand the available input or output data for the selected step.
Contributor listWhich inputs did this aggregate combine?Open the aggregate’s contributor list and page through its inputs.