Skip to content

fix(events): serialize connector payloads as JSON text - #2077

Open
gopikrishna000 wants to merge 1 commit into
mainfrom
fix/connector-event-json-string-payloads
Open

fix(events): serialize connector payloads as JSON text#2077
gopikrishna000 wants to merge 1 commit into
mainfrom
fix/connector-event-json-string-payloads

Conversation

@gopikrishna000

@gopikrishna000 gopikrishna000 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What

  • Serialize final request_data and response_data values as JSON text before Kafka publication.
  • Keep both fields structured while configured transformations and extractions run.
  • Preserve existing null behavior.

Why

These payloads can contain any Serde JSON value, including objects, arrays, and scalar values. Emitting one JSON-text layer gives downstream consumers a consistent wire representation.

Rollout dependency

Deploy the backward-compatible Vector change before deploying this UCS change.

The Vector change accepts both the current structured payloads and the new JSON-text payloads, preventing merchant-facing Prism audit logs from being double encoded during a rolling deployment.

Validation

  • cargo fmt --all -- --check
  • cargo check -p ucs_common_utils

@gopikrishna000
gopikrishna000 requested a review from a team as a code owner August 7, 2026 12:13
@gopikrishna000 gopikrishna000 self-assigned this Aug 7, 2026
@gopikrishna000
gopikrishna000 force-pushed the fix/connector-event-json-string-payloads branch from 93784e5 to 8250ca2 Compare August 7, 2026 12:14
@gopikrishna000
gopikrishna000 force-pushed the fix/connector-event-json-string-payloads branch from 8250ca2 to a64ed78 Compare August 7, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants