skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

I use okhttp as dubbo rpc module, the trace was mess (当我用okhttp作为dubbo的底层通信模块时,调用链会出现分叉的现象)

Open zxbu opened this issue 7 years ago • 4 comments

Please answer these questions before submitting your issue.

  • Why do you submit this issue? Bug

Bug

  • Which version of SkyWalking, OS and JRE? SkyWalking

  • What happen? I use okhttp as dubbo rpc module, the trace was mess (当我用okhttp作为dubbo的底层通信模块时,调用链会出现分叉的现象)

one rpc will cause two trace

image

zxbu avatar Apr 24 '19 08:04 zxbu

I don't know much about the dubbo + okhttp. If there is async, you need a new plugin to deal with it.

wu-sheng avatar Apr 24 '19 08:04 wu-sheng

I don't know what the trace should be, so even you show me the graph, I have no clue. Sorry.

wu-sheng avatar Apr 24 '19 08:04 wu-sheng

It was a simple dubbo rpc like a -> b. so the trace should be like this pic:

image

Actually, I use a async http invoke in dubbo. My solution is remove the okhttp plugin, it worked. Thank you for your reply, you can close issue if need.

zxbu avatar Apr 24 '19 08:04 zxbu

I am closing. If you active http async, because dubbo plugin doesn't know async, then this shows as two rpc calls. That is why we provide this convenient way to remove some plugin.

wu-sheng avatar Apr 24 '19 08:04 wu-sheng