-
Notifications
You must be signed in to change notification settings - Fork 594
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
Add plugin to support Aerospike Java client #565
Conversation
Please fix CI, and you should run the build, run UT and test scenarios locally first. |
Running UT and test scenarios locally works fine,pom.xml file forgot to add license header,already fixed。 |
...c/main/java/org/apache/skywalking/apm/plugin/aerospike/AerospikeClientMethodInterceptor.java
Outdated
Show resolved
Hide resolved
AbstractSpan span = ContextManager.createExitSpan("Aerospike/" + method.getName(), peer); | ||
span.setComponent(ComponentsDefine.AEROSPIKE); | ||
Tags.CACHE_TYPE.set(span, "Aerospike"); | ||
SpanLayer.asCache(span); |
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.
Isn't there any command to collect for this plugin? No read/write flag?
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.
yes,It is operated by different methods,example: client.put()、client.get()、client.append()
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.
put and append look like write, get is read.
I think you could add op tag.
import static net.bytebuddy.matcher.ElementMatchers.named; | ||
|
||
public enum AerospikeMethodMatch { | ||
INSTANCE; |
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.
Why an enum? I think you just need this matcher as static in the AerospikeClientInstrumentation
.
And are there many other methods in this class? As a result, you have to list all relative methods?
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.
AerospikeClient class has many methods,but it is possible to remove some methods, I'll remove them.
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.
Please remove this enum. This is just a static list.
Any update? |
yes,I update after get off work. |
already updated |
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.
Once plugin tests pass, I am good.
CHANGES
log.