RockteMQ-AI commented on issue #11312:
URL: https://github.com/apache/rocketmq/issues/11312#issuecomment-6101098995

   **Issue Evaluation**
   
   Category: `type/bug` (documentation) | Status: **Confirmed**
   
   The reported issue is valid. The constructors `DefaultMQProducer(String, 
boolean)` and `DefaultMQPushConsumer(String, boolean)` do not exist in the 
current codebase.
   
   **Root Cause:** `docs/en/Operations_Trace.md` sections 4.1 (line 59) and 4.2 
(line 79) use a two-argument constructor form that was never shipped. The 
actual constructors require three arguments:
   - `DefaultMQProducer(String producerGroup, boolean enableMsgTrace, String 
customizedTraceTopic)`
   - `DefaultMQPushConsumer(String consumerGroup, boolean enableMsgTrace, 
String customizedTraceTopic)`
   
   **Impact:** Readers copying the documentation snippets will get a compile 
error (`The constructor ... is undefined`).
   
   **Fix:** Update the snippets to pass `null` as the third argument (meaning 
"use default system trace topic"), consistent with section 4.3 of the same page.
   
   An automated fix proposal will be generated. Reply `/approve` to proceed 
with PR generation.
   
   ---
   *Automated evaluation by github-manager-bot*


-- 
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]

Reply via email to