skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

gateway hystrix trace info error

Open mbao opened this issue 7 years ago • 3 comments

  • Why do you submit this issue?
  • [ ] Question or discussion

Question

  • What do you want to know?

I know that gateway is not supported. But I wonder why gateway hystrix into trace twice. When debugging, I found that HystrixCommandRunInterceptor runs twice, one for HttpClientRibbonCommand and another for AbstractRibbonCommand. Can someone explain it? Thanks. wx20190307-193651 wx20190307-193756 2x

mbao avatar Mar 07 '19 11:03 mbao

First of all, how codes run based on how they write. Tracing agent has no magic, just show you the code path. If it says, it invoke twice, it most likely invokes twice.

And your debug confirm that, what is your question? We can't tell why all codes wrote in this way.

wu-sheng avatar Mar 07 '19 11:03 wu-sheng

First of all, how codes run based on how they write. Tracing agent has no magic, just show you the code path. If it says, it invoke twice, it most likely invokes twice.

And your debug confirm that, what is your question? We can't tell why all codes wrote in this way.

the run method of HttpClientRibbonCommand is called once, but the beforeMethod of HystrixCommandRunInterceptor is called twice.
Maybe I don't express clearly, sorry.

mbao avatar Mar 08 '19 03:03 mbao

That is mutiple instrumented, means there are instrument definitions, which match this single one class.

wu-sheng avatar Mar 08 '19 04:03 wu-sheng