Eventarc Validation
When to use this skill
- •When defining new custom events.
- •When debugging "silent failures" where events are not triggering functions.
- •When writing code that publishes to Eventarc.
How to use it
- •Validate CloudEvents Attributes:
- •Ensure
typefollows thecom.boklo.transaction.*format. - •Verify
sourceidentifies the producing service (e.g.,//firestore.googleapis.com/...). - •Check that
datacontenttypeis explicitlyapplication/json(often missed, causing routing failures).
- •Ensure
- •Check Payload Structure:
- •Ensure the
dataattribute contains a valid JSON object matching the expected schema.
- •Ensure the
- •Verify Routing Config:
- •Confirm that the
eventarc_triggerdefinition infirebase.jsonor Terraform matches the emitted event attributes exactly.
- •Confirm that the
- •Log & Trace:
- •Recommend logging the full CloudEvent object before publishing during debugging to ensure all fields are populated correctly.