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
|
@Override
|
||||||
public AbstractTracingSpan setOperationName(String operationName) {
|
public AbstractTracingSpan setOperationName(String operationName) {
|
||||||
this.operationName = operationName;
|
this.operationName = operationName;
|
||||||
|
this.operationId = DictionaryUtil.nullValue();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -164,6 +165,7 @@ public abstract class AbstractTracingSpan implements AbstractSpan {
|
||||||
*/
|
*/
|
||||||
public AbstractTracingSpan setOperationId(int operationId) {
|
public AbstractTracingSpan setOperationId(int operationId) {
|
||||||
this.operationId = operationId;
|
this.operationId = operationId;
|
||||||
|
this.operationName = null;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue