提交 31a6407f 编写于 作者: C cyejing 提交者: wu-sheng

Support set operation name in async mode span (#4015)

上级 cfb3379c
......@@ -96,7 +96,7 @@ public class EntrySpan extends StackBasedTracingSpan {
@Override
public AbstractTracingSpan setOperationName(String operationName) {
if (stackDepth == currentMaxDepth) {
if (stackDepth == currentMaxDepth || isInAsyncMode) {
return super.setOperationName(operationName);
} else {
return this;
......
......@@ -116,7 +116,7 @@ public class ExitSpan extends StackBasedTracingSpan implements WithPeerInfo {
@Override
public AbstractTracingSpan setOperationName(String operationName) {
if (stackDepth == 1) {
if (stackDepth == 1 || isInAsyncMode) {
return super.setOperationName(operationName);
} else {
return this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册