.net 桌面应用程序是否可以使用APM elastic?
我有使用.net的桌面应用程序,我想监控该应用程序的性能。是否可以使用APM elasticsearch监视此应用程序?。。或任何其他可以监视桌面应用程序性能的工具?将使用其中一种解决方案 您可以手动创建事务并设置其类型 在事务内部,您可以手动创建跨距 例如,java api的示例:.net 桌面应用程序是否可以使用APM elastic?,.net,vb.net,
elasticsearch,apm,.net,Vb.net,
elasticsearch,Apm,我有使用.net的桌面应用程序,我想监控该应用程序的性能。是否可以使用APM elasticsearch监视此应用程序?。。或任何其他可以监视桌面应用程序性能的工具?将使用其中一种解决方案 您可以手动创建事务并设置其类型 在事务内部,您可以手动创建跨距 例如,java api的示例: import co.elastic.apm.api.ElasticApm; import co.elastic.apm.api.Transaction; public class Main { pub
import co.elastic.apm.api.ElasticApm;
import co.elastic.apm.api.Transaction;
public class Main {
public static void main(String[] args) throws InterruptedException {
Thread thread = new Thread(() -> {
Transaction transaction = ElasticApm.startTransaction();
try {
transaction.setName("ExampleTransaction");
transaction.setType(Transaction.TYPE_REQUEST);
// do your thing...
} catch (Exception e) {
transaction.captureException(e);
} finally {
transaction.end();
}
});
thread.start();
thread.join();
}
}
带有外部URL的简短回答被认为是低质量的,因为外部内容可以移动。请确保在回答中包含关键细节。有关更多信息,请参阅。