These are chat archives for spring-cloud/spring-cloud

13th
Jul 2017
Dave Syer
@dsyer
Jul 13 2017 05:52
The dashboard only shows circuits that are active. Maybe those code paths haven't been used yet?
Marcin Grzejszczak
@marcingrzejszczak
Jul 13 2017 05:55
Or you're calling an annotated method from another method in the same class and it doesn't go through proxy
jramsdale
@jramsdale
Jul 13 2017 06:14
The code paths should have been used. I’ll double check. But initially I suspected the issue was that methods in the same class weren’t proxied, so I moved them out. Good to know that’s a gotcha.
jramsdale
@jramsdale
Jul 13 2017 06:22
Yeah, I was working my way through that page. Hadn’t gotten that far yet. :-)
Incidentally, my annotations are on subclasses of org.springframework.integration.handler.AbstractMessageHandler, on their handleMessageInternal method, which I widened to public. I was wondering if that was also a factor.
Dave Syer
@dsyer
Jul 13 2017 06:26
Who is calling that method then? Sounds like it was designed to be called internally (so not through the proxy)
jramsdale
@jramsdale
Jul 13 2017 06:27
Yeah, I think that must be the issue. I’m calling to a proxied class, but not to the Hystrix-annotated method—it’s called from the public handleMessage method.
That is, I call handleMessage and handleMessage calls handleMessageInternal.
…which is annotated in my subclass.
Hmmm. Would it work to override handleMessage in the subclass, call super and annotate that method?
Dave Syer
@dsyer
Jul 13 2017 06:32
Yes. As long as it's actually a proxy.
jramsdale
@jramsdale
Jul 13 2017 06:33
What ensures it’s a proxy? These are @Component-annotated scanned beans.
Dave Syer
@dsyer
Jul 13 2017 06:34
That should do it. As long as you @EnableHystrix
jramsdale
@jramsdale
Jul 13 2017 06:34
Yeah, that’s done, because I do have another bean that shows up in the dashboard.
jramsdale
@jramsdale
Jul 13 2017 06:46
@dsyer I think that did it—thanks!
Marcin Grzejszczak
@marcingrzejszczak
Jul 13 2017 06:47
:+1:
Fabian Wallwitz
@cforce
Jul 13 2017 11:49
Can someone provide an working -example for config-server setup with multiple repos per profile?