Skip to content

Commit 0a1a03d

Browse files
authored
fix: Update encoding for structured event (#384)
Signed-off-by: Paul Strachan <[email protected]>
1 parent 7f355d1 commit 0a1a03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/kafka/src/main/java/io/cloudevents/examples/kafka/SampleProducer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void main(String[] args) {
3333

3434
// Configure the CloudEventSerializer to emit events as json structured events
3535
props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, CloudEventSerializer.class);
36-
props.put(CloudEventSerializer.ENCODING_CONFIG, Encoding.BINARY);
36+
props.put(CloudEventSerializer.ENCODING_CONFIG, Encoding.STRUCTURED);
3737
props.put(CloudEventSerializer.EVENT_FORMAT_CONFIG, JsonFormat.CONTENT_TYPE);
3838

3939
// Create the KafkaProducer

0 commit comments

Comments
 (0)