在弹性APM中,@ CaptureTransaction会为外部呼叫创建一个新选项卡

问题描述 投票:-1回答:1

对于下面的代码,我想创建一个新选项卡,该选项卡将存储所有外部方法调用并进行汇总,但是我没有得到任何此类结果。

@@ CaptureTransaction(value ='Task')

elasticsearch kibana javaagents apm elastic-apm
1个回答
0
投票

您是不是需要新的“交易类型”?

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

但是@CaptureTranscation注释工作in case

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
© www.soinside.com 2019 - 2024. All rights reserved.