mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
Merge pull request #2995 from yuz10/develop4
[ISSUE #2990] Add message tracing switch in sendMessage command of mqadmin, and add document
This commit is contained in:
@@ -100,6 +100,19 @@ RocketMQ的消息轨迹特性支持两种存储轨迹数据的方式:
|
||||
......
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
### 4.4 使用mqadmin命令发送和查看轨迹
|
||||
- 发送消息
|
||||
```shell
|
||||
./mqadmin sendMessage -m true --topic some-topic-name -n 127.0.0.1:9876 -p "your meesgae content"
|
||||
```
|
||||
- 查询轨迹
|
||||
```shell
|
||||
./mqadmin QueryMsgTraceById -n 127.0.0.1:9876 -i "some-message-id"
|
||||
```
|
||||
- 查询轨迹结果
|
||||
```
|
||||
RocketMQLog:WARN No appenders could be found for logger (io.netty.util.internal.PlatformDependent0).
|
||||
RocketMQLog:WARN Please initialize the logger system properly.
|
||||
#Type #ProducerGroup #ClientHost #SendTime #CostTimes #Status
|
||||
Pub 1623305799667 xxx.xxx.xxx.xxx 2021-06-10 14:16:40 131ms success
|
||||
```
|
||||
|
||||
@@ -101,5 +101,21 @@ Adjusting instantiation of DefaultMQProducer and DefaultMQPushConsumer as follow
|
||||
```
|
||||
|
||||
|
||||
### 4.4 Send and query message trace by mqadmin command
|
||||
- send message
|
||||
```shell
|
||||
./mqadmin sendMessage -m true --topic some-topic-name -n 127.0.0.1:9876 -p "your meesgae content"
|
||||
```
|
||||
- query trace
|
||||
```shell
|
||||
./mqadmin QueryMsgTraceById -n 127.0.0.1:9876 -i "some-message-id"
|
||||
```
|
||||
- query trace result
|
||||
```
|
||||
RocketMQLog:WARN No appenders could be found for logger (io.netty.util.internal.PlatformDependent0).
|
||||
RocketMQLog:WARN Please initialize the logger system properly.
|
||||
#Type #ProducerGroup #ClientHost #SendTime #CostTimes #Status
|
||||
Pub 1623305799667 xxx.xxx.xxx.xxx 2021-06-10 14:16:40 131ms success
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user