Skip to content

Fix the bug in rocketmq-client-4.8 where ONEWAY messages cannot record and export spans.#17656

Open
YaoYingLong wants to merge 1 commit intoopen-telemetry:mainfrom
YaoYingLong:feature/rocketmq-client-4.8
Open

Fix the bug in rocketmq-client-4.8 where ONEWAY messages cannot record and export spans.#17656
YaoYingLong wants to merge 1 commit intoopen-telemetry:mainfrom
YaoYingLong:feature/rocketmq-client-4.8

Conversation

@YaoYingLong
Copy link
Copy Markdown

When producing ONEWAY messages using the sendOneway method of DefaultMQProducer, span data cannot be recorded or exported.

The root cause is that when sending messages in ONEWAY mode, the SendResult cannot be obtained, and under normal circumstances, no exception is thrown. As a result, the span does not end.

Solution: Add a CommunicationMode.ONEWAY check in the sendMessageAfter method of TracingSendMessageHookImpl to ensure the execution of Instrumenter.end.

@YaoYingLong YaoYingLong requested a review from a team as a code owner April 7, 2026 11:59
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be possible to add a test for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants