Introduce two new options for Spanner Change Streams to Pub/Sub template.
includeSpannerSource: boolean option default to false.
If this config is set to true, two new fields spannerDatabaseId and spannerInstanceId will be populated to the message data field with the associate values.
outputMessageData: string option default to empty.
If this config has non-empty string value, the string value will be populated to the outputMessageMetadata field in output pub sub message body.
I verified correctness for both AVRO and JSON data formats through integration tests in SpannerChangeStreamsToPubSubIT.java.
Introduce two new options for Spanner Change Streams to Pub/Sub template.
includeSpannerSource
: boolean option default to false. If this config is set to true, two new fieldsspannerDatabaseId
andspannerInstanceId
will be populated to the message data field with the associate values.outputMessageData
: string option default to empty. If this config has non-empty string value, the string value will be populated to theoutputMessageMetadata
field in output pub sub message body.I verified correctness for both AVRO and JSON data formats through integration tests in
SpannerChangeStreamsToPubSubIT.java
.