-2

对于下面的代码,我想创建一个新选项卡来存储所有外部方法调用并进行聚合,但我没有得到任何这样的结果。

@CaptureTransaction(value = "Task") 
4

1 回答 1

0

你的意思是你需要新的“交易类型”吗?

如果是,那么您应该设置type注释参数。

但是 @CaptureTranscation 注释在以下情况下起作用:

Note that this only works when there is no active transaction on the same thread.

    value: The name of the span. Defaults to ClassName#methodName
    type: The type of the transaction. Defaults to request
于 2020-04-13T20:48:14.057 回答