对于下面的代码,我想创建一个新选项卡来存储所有外部方法调用并进行聚合,但我没有得到任何这样的结果。
@CaptureTransaction(value = "Task")
对于下面的代码,我想创建一个新选项卡来存储所有外部方法调用并进行聚合,但我没有得到任何这样的结果。
@CaptureTransaction(value = "Task")
你的意思是你需要新的“交易类型”吗?
如果是,那么您应该设置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