-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Dev hystrix plugin #1594
Dev hystrix plugin #1594
Conversation
@nstopkimsk when will the 1.5.3 milestone be? |
@jiaqifeng Not yet defined. 1.5.2 will be released soon. after that we will discuss it. |
+1 to this. Very important. |
Is this compatible to 1.4.x hystrix version line too? Or 1.5.x only? |
@pparth I just test it with com.netflix.hystrix:hystrix-core:1.3.20 which my app used. The version is specified in HystrixCommandIT integration test. What is your interest in it? If it is reasonable I would like investigate it if I have time for it ^-^. |
@pparth Currently, this plugin only show it's a hystix call, withnot the name of the real subclass of hystrixCommand which I thought is more meaningful. I am considering to add this function too. |
Cool. No problem on my side. Just thinking that hystrix instrumentation is something that we would like to have as we make extensive use of this framework. We maintain 2 versions of our Core module, one that uses the 1.4.X line and one that uses the 1.5.X line (which has major differences that are supposed to be backward ocmpatible). |
@jiaqifeng We make extensive use of Hystrix in a micro-service architecture deployed in upwork.com. We will gladly help with testing what you prepared. Do you have an agent build for us to use? |
@pparth I update code to support 1.4.x version while I just test it with a simple demo using 1.4.20 and 1.5.2. For I will be busy for next several weeks I will update more test for it really a little later. I'd like to see you to try it. Any feedback is appreciate. |
There are 2 TODOs left: |
@jiaqifeng Thanks for keeping up with this. Might be a good idea to rebase your Hystrix feature branch against the master instead of the merge commit (f833089). Let me know if you have any questions. |
@Xylus Thank you for your advice, I will rebase it in a week. Will this PR be accepted in the next release? Or any else must be done for accepting? |
@jiaqifeng When I do add pinpoint with your PR, it does not seem to wrap outgoing calls with the needed headers. My Pinpoint shows calls to the backend from "USER" instead from the frontend. The frondend call stack shows the HystrixCommand ( queue() ) but does not go deeper into the call. Any ideas? Any logs or screenshots I can supply you with? |
@Frusty |
@jiaqifeng |
@Frusty |
f833089
to
aeaee45
Compare
…queue instead of execute for cover acynchronous call.
…ed, also scope is not needed too.
…s name in transaction info.
…o extends SpanAsyncEventSimpleAroundInterceptor.
9de6c84
to
ace1da7
Compare
@Frusty |
@Xylus |
@jiaqifeng |
@jiaqifeng |
* | ||
*/ | ||
public interface HystrixTestConstants { | ||
public static final String VERSION = "1.5.2-SNAPSHOT"; |
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.
Not sure about this but should this be 1.5.2-SNAPSHOT
?
You could also use Version.java if you have pinpoint-commons dependency.
@Xylus |
@jiaqifeng hmm that is weird, |
@jiaqifeng |
@Xylus |
b546def
to
fca067c
Compare
@jiaqifeng |
@Xylus |
@jiaqifeng |
@Xylus |
@jiaqifeng |
@jiaqifeng
for hystrix 1.5.3 |
@clufeng |
This plugin supports HystrixCommand from com.netflix.hystrix:hystrix-core. And show the topology of a client using HystrixCommand to call a service.
HystrixCommand is a "Latency and Fault Tolerance" for RPC call in Distributed Systems. HystrixCommand will run a RPC call in another service thread and provide circuit breaker functions. More could be found at https://github.com/Netflix/Hystrix/.
Below is screenshots showing 2 simple web app using Hystrix.
Any review advice is appreciate.