GoodAnalytics.Connectors.PostCommit (GoodAnalytics v0.1.1)

Copy Markdown View Source

Post-commit connector dispatch creation.

After a connector-eligible event commits, this module triggers the planner to create dispatch records for all eligible connectors. Dispatch creation failures do not roll back the source event.

Summary

Functions

Returns true if the event type is eligible for connector dispatch.

Triggers connector dispatch planning for a committed event.

Functions

connector_eligible?(arg1)

Returns true if the event type is eligible for connector dispatch.

maybe_dispatch(event, attrs \\ %{})

Triggers connector dispatch planning for a committed event.

Called by the event recorder after successful insert. Returns :ok regardless of whether dispatches were created — connector failures must never affect the source event.

Parameters

  • event — the committed event struct
  • attrs — the original event attributes (may contain :connector_signals)