tongtaodragon opened a new issue, #548:
URL: https://github.com/apache/rocketmq-spring/issues/548
1. Please describe the feature you are requesting.
We want to make enableMsgTrace configurable through application.yml file as
below.
@RocketMQMessageListener(
topic = "normal_topic_define_in_Aliware_MQ",
consumerGroup = "group_define_in_Aliware_MQ",
selectorExpression = "${demo.consumer.selector}",
enableMsgTrace = "${demo.consumer.enableMsgTrace}" // hope configure
like this
)
public class ACLStringConsumer implements RocketMQListener<String> {
@ExtRocketMQTemplateConfiguration(
nameServer = "${demo.rocketmq.extNameServer}",
tlsEnable = "${demo.rocketmq.ext.useTLS}",
enableMsgTrace = "${demo.consumer.enableMsgTrace}" // hope configure
like this
)
public class ExtRocketMQTemplate extends RocketMQTemplate {
}
2. Provide any additional detail on your proposed use case for this feature.
enableMsg is important to identify the message source and consumer. But it
may bring performance issue. We don't want to turn off the feature totally
through server side configuration. We want to control it from producer client
or consumer client when we met performance issue indeed.
3. Indicate the importance of this issue to you (blocker, must-have,
should-have, nice-to-have). Are you currently using any workarounds to address
this issue?
should-have.
No workaround, we have to hard code true or false in RocketMQMessageListener
and ExtRocketMQTemplateConfiguration annotation.
--
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]