Elastic APM
我已根据文档(https://www.elastic.co/guide/en/apm/agent/rum-js/current/vue-integration.html)集成到我的 Vue.js 应用程序中
除了默认事件之外page-load
,route-change
我还想为某些按钮单击添加自定义事务/跨度。
我坚持检查是否已经存在可用于添加自定义跨度的现有事务开始:
const transaction = this.$apm.currentTransaction()
transaction.startSpan('custom_span', 'type_name');
transaction.end();
但是获取当前事务失败(第一行)。