Skip to content

Commit

Permalink
fix(instrument): fix dubbo client trace inject adapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
zmapleshine committed Jun 29, 2021
1 parent c46761b commit f0837af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DubboInjectAdapter implements TextMapSetter<RpcInvocation> {
static final DubboInjectAdapter SETTER = new DubboInjectAdapter();

@Override
public void set(RpcInvocation rpcInvocation, String key, String value) {
rpcInvocation.setAttachment(key, value);
public void set(RpcContext rpcContext, String key, String value) {
rpcContext.setAttachment(key, value);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public Result invoke(Invoker<?> invoker, Invocation invocation) {
final Context context;
if (kind.equals(CLIENT)) {
context = tracer.startClientSpan(interfaceName, methodName);
tracer.inject(context, (RpcInvocation) invocation, DubboInjectAdapter.SETTER);
tracer.inject(context, rpcContext, DubboInjectAdapter.SETTER);
} else {
context = tracer.startServerSpan(interfaceName, methodName, (RpcInvocation) invocation);
}
Expand Down

0 comments on commit f0837af

Please sign in to comment.