This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git
The following commit(s) were added to refs/heads/main by this push:
new 7a50836 Added a brief note about adjusting connectors behavior via
Kafka message headers
7a50836 is described below
commit 7a5083647e075b284d04d1047e240208620664c1
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Tue Jun 15 10:31:08 2021 +0200
Added a brief note about adjusting connectors behavior via Kafka message
headers
---
docs/modules/ROOT/pages/user-guide/basic-configuration.adoc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/docs/modules/ROOT/pages/user-guide/basic-configuration.adoc
b/docs/modules/ROOT/pages/user-guide/basic-configuration.adoc
index ffa9f16..037f627 100644
--- a/docs/modules/ROOT/pages/user-guide/basic-configuration.adoc
+++ b/docs/modules/ROOT/pages/user-guide/basic-configuration.adoc
@@ -62,3 +62,9 @@ For a Source connector the basic options are:
|===
For more options related to single connector you can have a look at
xref:reference/index.adoc[Connectors list].
+
+[[BasicConfiguration-MessageLevelHeaders]]
+== Message Level Headers
+
+Certain sink components offer additional configuration and adjustment of
behavior by setting specific headers on the message sent via Kafka. For example
the file sink connector allows the user to set the file name either via the
configuration property or via the header `CamelHeader.CamelFileName`. This is
usually noted on the connector documentation, but as a rule of thumb, users are
advised to also check the Camel components documentation to verify what message
headers are available.
+If they are available, to configure them directly from your Kafka producer,
you can append them with the string `CamelHeader.` (i.e.:
`CamelHeader.CamelFileName`, `CamelHeader.CamelFilePath`, etc) and include them
on the message headers from Kafka.
\ No newline at end of file