duanasq commented on issue #1268:
URL:
https://github.com/apache/camel-kafka-connector/issues/1268#issuecomment-942184895
That worked, thanks. I used an apply function like this:
```
@Override
public R apply(R record) {
var headerValue = "partition-" + record.kafkaPartition();
var newHeaders =
record.headers().duplicate().add("CamelHeader.CamelAwsKinesisPartitionKey",
headerValue,
ConnectSchema.STRING_SCHEMA);
return record.newRecord(record.topic(), record.kafkaPartition(),
record.keySchema(),
record.key(), record.valueSchema(), record.value(),
record.timestamp(), newHeaders);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]