Skip to content

[Trace] [Enhancement] Add ClientHost and GroupName to tracebean #585

@maixiaohai

Description

@maixiaohai
  1. Please describe the issue you observed:

    • What did you do (The steps to reproduce)?
      I used trace example to produce and consume messages.
    • What did you expect to see?
      Check the message trace on console and find the correct storeHost and groupName
    • What did you see instead?
      The response as follows , the storeHost is the console host, not the client host; the groupName in SubAfter message is empty
    "status":0,
    "data":[
        {
            "msgId":"0AE830DD4A4F0000000011b799480001",
            "tags":"",
            "keys":"null",
            "storeHost":"xxx",
            "costTime":0,
            "msgType":"SubBefore",
            "offSetMsgId":"",
            "timeStamp":1609754334084,
            "topic":"",
            "groupName":"zx_tst",
            "status":"Sucess"
        },
        {
            "msgId":"0AE830DD4A4F0000000011b799480001",
            "tags":"",
            "keys":"null",
            "storeHost":"xxx",
            "costTime":0,
            "msgType":"SubAfter",
            "offSetMsgId":"",
            "timeStamp":1609755807542,
            "topic":"",
            "groupName":"",
            "status":"Sucess"
        }
    ],
    "errMsg":null
} 
  1. Please tell us about your environment:

    • What is your OS?

    • What is your client version?
      2.1.0

    • What is your RocketMQ version?
      4.7.0

  2. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):
    When rmq broker update to version 4.8.0, the added trace message filed will be decoded and show up.
    The console version is 2.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussSomething undering disscussingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions