-
Notifications
You must be signed in to change notification settings - Fork 6.6k
feat: add enhance pulsar MessageListener instance #6774
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
feat: add enhance pulsar MessageListener instance #6774
Conversation
|
Should be reviewed by @codelipenghui And you should update https://github.com/apache/skywalking/tree/master/test/plugin/scenarios/pulsar-scenario to verify your case. How to write plugin test doc is in the plugin dev doc already. |
Codecov Report
@@ Coverage Diff @@
## master #6774 +/- ##
============================================
+ Coverage 53.75% 54.23% +0.48%
- Complexity 4156 4254 +98
============================================
Files 1832 1836 +4
Lines 39201 39379 +178
Branches 4336 4322 -14
============================================
+ Hits 21071 21359 +288
+ Misses 17110 17007 -103
+ Partials 1020 1013 -7 Continue to review full report at Codecov.
|
OK, I will update pulsar-scenario according to the doc |
7713e55 to
0c6c2d3
Compare
|
If you add a new consumer, you need to update the expected data file. |
|
And Changes.md should be updated to describe what you changed. |
|
|
...src/main/java/org/apache/skywalking/apm/plugin/pulsar/PulsarConsumerListenerInterceptor.java
Outdated
Show resolved
Hide resolved
...ario/src/main/java/test/apache/skywalking/apm/testcase/pulsar/controller/CaseController.java
Outdated
Show resolved
Hide resolved
|
@codelipenghui I found that byte buddy can not instrument lambda, however most cases when we set a |
This is not related to byte-buddy. It can do, but SkyWalking doesn't want you to do that. The recommended way to do is enhancing the method using the Lambda, and create another new lambda as a wrapper to do the instrument. |
OK, Just like what the class |
Yes, but use a new lambda. I remember we have this in some plugins, but can't tell which. Sorry, too many plugins. |
e16596c to
1f50357
Compare
|
@codelipenghui Sorry for late update. I instrument |
|
@wu-sheng During the local test, I found that if I want to run unit test locally, I had to introduce some extra libraries in the root module pom file, e.g. |
About the libraries you mentioned, some are not included. But we have included some libraries about And you seems to update many submodules(core proto, query-protocol, test proto and UI), which should not be. Please revert these unexpected changes. |
Sorry, I have reverted these changes already |
You reverted more than expected. Please recheck the file changes. Many things are being removed. |
0191d34 to
78b5cc1
Compare
…dd-listener-instrument
This reverts commit 3bbfc5a.
I make some new commit, and recheck the change file list. All files are only related to this PR. 😄 |
|
I gave the green light to CI. @codelipenghui please review the codes. |
wu-sheng
left a comment
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.
Forward @codelipenghui 's approval, as he wrote this. And once tests passed, I am good with this PR.
|
Great! Thank all for helping to review the code and put forward suggestions. 😄 |
|
@wallezhang Welcome to join the code contributor list. You will find your GitHub ID on https://skywalking.apache.org/team/ |
Fix <#6730>
CHANGESlog.