Merge pull request #306 from ascrutae/zhangxin/fix/opeartionId-incorrect
fix operation id of exit span incorrect issue
This commit is contained in:
commit
f3bc9d445d
|
|
@ -286,13 +286,13 @@ public class TracingContext implements AbstractTracerContext {
|
||||||
.doInCondition(
|
.doInCondition(
|
||||||
new PossibleFound.FoundAndObtain() {
|
new PossibleFound.FoundAndObtain() {
|
||||||
@Override
|
@Override
|
||||||
public Object doProcess(int peerId) {
|
public Object doProcess(int operationId) {
|
||||||
return new ExitSpan(spanIdGenerator++, parentSpanId, applicationId, peerId);
|
return new ExitSpan(spanIdGenerator++, parentSpanId, operationId, applicationId);
|
||||||
}
|
}
|
||||||
}, new PossibleFound.NotFoundAndObtain() {
|
}, new PossibleFound.NotFoundAndObtain() {
|
||||||
@Override
|
@Override
|
||||||
public Object doProcess() {
|
public Object doProcess() {
|
||||||
return new ExitSpan(spanIdGenerator++, parentSpanId, applicationId, remotePeer);
|
return new ExitSpan(spanIdGenerator++, parentSpanId, operationName, remotePeer);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue