
Segment
Use Segment Protocols to check event names and required fields before enforcing controls.
- Tracking Plan
- Subscription Paused requires a subscription ID and pause reason.
- Source
- The staging app sends three instrumented cases.
- Schema controls
- Observe violations before deciding which to block.
Catch a misspelled subscription event in staging
In Twilio Segment Protocols, define the Track event Subscription Paused and its required string properties subscription_id and pause_reason. Connect the tracking plan to your test source. Use Schema Controls to select how the source handles unplanned and violating Track events. Start by observing results before changing the policy for a shared application.
Send an approved event, a misspelled Subscrption Paused event, and an approved event name without a reason. Compare violations and delivery separately. After you fix the instrumented producer, repeat the same cases with the chosen enforcement policy against a test destination.
| Event sent | Expected result |
|---|---|
| Subscription Paused with both strings | The approved destination receives the event. |
| Subscrption Paused | It appears as an unplanned event. Verify the configured destination behavior. |
| Approved name, missing pause_reason | It violates schema. Check the property and confirm the forwarding or blocking policy. |
Keep control settings and the producer owner with the source data contract.