operation name or operation id need to reset when create multiple entry spans
This commit is contained in:
parent
9b34e11f71
commit
ceca5e70ac
|
|
@ -153,6 +153,7 @@ public abstract class AbstractTracingSpan implements AbstractSpan {
|
|||
@Override
|
||||
public AbstractTracingSpan setOperationName(String operationName) {
|
||||
this.operationName = operationName;
|
||||
this.operationId = DictionaryUtil.nullValue();
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
@ -164,6 +165,7 @@ public abstract class AbstractTracingSpan implements AbstractSpan {
|
|||
*/
|
||||
public AbstractTracingSpan setOperationId(int operationId) {
|
||||
this.operationId = operationId;
|
||||
this.operationName = null;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue