Skip to content

[Doc] Documentation Related Trace documentation uses outdated constructor signatures #10500

@SummCoder

Description

@SummCoder

Search before creation

  • I had searched in the issues and found no similar issues.

Documentation Related

The trace documentation (both English and Chinese) uses
new DefaultMQProducer("group", true) and
new DefaultMQPushConsumer("group", true) which no longer exist in 5.x.

Verified against the source code:

  • DefaultMQProducer.java has no (String, boolean) constructor
  • DefaultMQPushConsumer.java has no (String, boolean) constructor

The correct signatures are:

  • new DefaultMQProducer("group", true, null)
  • new DefaultMQPushConsumer("group", true, null)

Affected files:

  • docs/cn/msg_trace/user_guide.md
  • docs/en/msg_trace/user_guide.md

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions