Find event changes in pre-release builds

Most data quality checks run once data is in the warehouse. AutoDocs compares a pre-release build's events with production, so problems can be fixed before release.

Comparing a beta with production

Point your QA or beta builds at the same stream. When 3.0.0-beta starts sending events, the Versions Explorer diffs it against the current production version.

In this example, a refactor changed order_id to a number, and the new checkout screen sends the same cart.currency for every user. In production, these would break joins on order ID and misreport revenue by currency.

2.9.123.0.0-betapre-release2 changes
@.event_nameCheckoutCompleted
PathType2.9.123.0.0-beta
$.order_idtypenumberstring48.2K310
$.cartobject
.currencycardinalitystring141
.item_countnumber3722
$.coupon_codestringnull2129
$.payment_methodstring65

Distinct values per version

Problems it catches

These are the kinds of changes that pass code review and break a dashboard a week later. Each one shows up in the Versions Explorer as soon as the new build sends events.

  • type$.order_id
    stringnumber

    Joins on order ID against your backend tables stop matching.

  • cardinality$.cart.currency
    14 distinct1 distinct

    A hardcoded default replaced the real value, so revenue by currency is wrong.

  • % of events$.error_msg
    0.4% of events12% of events

    A new error path fires far more often than before.

  • null %$.session_id
    0% null18% null

    Some screens send events before a session starts, and sessions undercount.

  • empty %$.items
    2% empty31% empty

    Carts are serialized before items load, so item metrics drop.

  • removed$.referrer
    presentmissing

    A refactor dropped attribution, and marketing reports go blank.

Shape and volume

AutoDocs checks an event's shape. To catch an event that stops firing, pair it with Real-Time Metrics: a filter that counts events by @.app.version shows a new release's volume within minutes, and a Grafana alert can tell you when it drops.

Each event in the Events Explorer also has a 90-day daily count, for a quick look without setting anything up.

Fitting it into a release

Send events from QA and beta builds to the same ingest as production, with a pre-release version like 3.0.0-beta. Before you ship, open that version in the Versions Explorer and review its changes alongside the rest of the release.

No tests to write. The comparison is against what production actually sends, so there's no expected schema to maintain.

More in AutoDocs

Questions

How do I define an "event"?

You can define an event by providing up to 3 properties that go into an event definition. Read more in the docs

If I accidentally send PII, can it be removed from AutoDocs samples?

Yes! Security and privacy is of the upmost importance. Review the docs on how to do this.

Are there limits to the number of events or versions?

There are. In order to safegaurd the system (for example, if you define a user_id field as an event descriptor) - any config that has more than 250 unique events or 200 unique versions will be disabled. These are flexible limits, if you have a need for more events/versions, please contact us.

How deeply nested does AutoDocs scan?

By default, events will be explored up to 10 levels deep, including nested arrays. This is a flexible limit, please contact us if you need this limit increased.

From $60/month. Every feature on every plan. 14 days free.