[Feature request] Expose complete MQTT publish context to PayloadFormatter
Author: qijizhCreated Sep 11, 2026Updated Sep 11, 2026
Search before asking
- I searched in the issues and found nothing similar.
Motivation
Currently, the MQTT PayloadFormatter interface receives only the topic and payload.
For custom MQTT ingestion scenarios, it would be helpful if PayloadFormatter could also access additional MQTT publish metadata, such as:
- client ID
- username
- QoS
- topic
- payload
In particular, access to clientId is useful when the MQTT connection identity needs to be preserved as part of the stored data.
It would therefore be helpful if the formatter API could expose the complete MQTT publish context rather than only topic and payload.
Backward compatibility with existing custom PayloadFormatter implementations would also be appreciated.
Thank you for considering this enhancement.
Solution
No response
Alternatives
No response
Are you willing to submit a PR?
- I'm willing to submit a PR!
Source: apache/iotdb