-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Rabbitmq instrument consumer class correctly to get duration reported… #3761
Conversation
Your test should be added through jenkins file. Find the fastest workload and group, add your new case there. And make sure test passed. |
...ent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/match/HierarchyMatch.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/skywalking/apm/plugin/rabbitmq/define/RabbitMQConsumerInstrumentation.java
Outdated
Show resolved
Hide resolved
...os/rabbitmq-scenario/src/main/java/test/apache/skywalking/testcase/rabbitmq/Application.java
Outdated
Show resolved
Hide resolved
After that, please add |
88b1f6f
to
44e78fa
Compare
@viswaramamoorthy Have you checked? Is the way I proposed working for your inherit scenario? |
@viswaramamoorthy Hi, Please rename the package of testcase. And then add it as a Jenkinsfile task to run. |
@dmsolr Which workload and group should be added? Or should we start workload 4 for now? @kezhenxu94 |
The plugin test framework doc is ready, #3786. Please take a look. @viswaramamoorthy After you confirm the latest codes are working for all your cases. |
Workload4 has been set up, use file name |
@kezhenxu94 Hi, I pushed the Jenkinsfile on #3787 . Please review and enable it. |
4cc4995
to
9f65ca1
Compare
Changes in this PR are verified and works for the bug reported. I have raised a separate PR for RabbitMQ e2e test case migration with package renamed. it is #3788 |
@viswaramamoorthy The test case has been merged, let's work on this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is good for me. Note that it uses HierarchyMatch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. com.rabbitmq.client.Consumer
HierarchyMatch should be safe from my perspective.
… accurately
Please answer these questions before submitting pull request
Why submit this pull request?
Bug fix
New feature provided
Improve performance
Related issues
Bug fix
Bug description.
RabbitMQ consumer duration is reported incorrectly due to instrumenting com.rabbitmq.client.impl.ConsumerDispatcher.handleDelivery method which spins up a thread to deliver message to consuming method
How to fix?
Instrumenting implementations of com.rabbitmq.client.Consumer to resolve
New feature or improvement