Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] AMQP consumers are not living up to expectations #210

Merged
merged 9 commits into from
Dec 18, 2024

Conversation

renyansongno1
Copy link
Contributor

Interception Point Modification

Since the Consumer function of AMQP091 returns a read-only chan structure, the previous agent logic reads this chan, causing the normal business logic to miss messages.

Therefore, after my consideration, interception can be performed before the message enters this chan to process the message for tracing.

Other Modification Points

Due to the definition of the AMQP protocol itself, after the client and broker establish a connection, communication is conducted using channels. Throughout the entire communication process, the message does not contain queue name information. Hence, it is necessary to obtain the relationship between ConsumerTag and queue when the Consumer function is called. In subsequent message bodies, the Queue can be mapped out through ConsumerTag.

@renyansongno1
Copy link
Contributor Author

apache/skywalking#12868

@renyansongno1
Copy link
Contributor Author

8706EF94-D67A-48DA-AE5A-635B8B73933A

@CodePrometheus CodePrometheus added the bug Something isn't working label Dec 16, 2024
@CodePrometheus CodePrometheus added this to the 0.6.0 milestone Dec 16, 2024
@mrproliu
Copy link
Contributor

Hi, @renyansongno1. Thanks for the PR, should we update the plugin test scenario to verify the issue have been fixed or not? Because in the issue mentioned, sounds like we miss some scenario verify?

@renyansongno1
Copy link
Contributor Author

Hi, @renyansongno1. Thanks for the PR, should we update the plugin test scenario to verify the issue have been fixed or not? Because in the issue mentioned, sounds like we miss some scenario verify?

ok, I will do it soon.

@renyansongno1
Copy link
Contributor Author

@mrproliu I had modify scenario tests, in this tests, only need send more than 1 msg, if we can find these span, the code is work.

@mrproliu mrproliu merged commit 988702e into apache:main Dec 18, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants