Azure ApplicationInsights Web 自定义事件
Azure ApplicationInsights Web custom events
我正在尝试为我的 SPA 应用设置 azure applicationinsights。
除默认指标外,我不想记录一些自定义内容,例如本例中的内容:分辨率和租户名称。
事件似乎已正确发送,但在 Azure 门户中我看到这些值未定义:
我应该配置什么才能使这些值可见?
import { ApplicationInsights } from '@microsoft/applicationinsights-web';
const appInsights = new ApplicationInsights({
config: {
instrumentationKey,
enableAutoRouteTracking: true
}
});
appInsights.loadAppInsights();
appInsights.trackPageView();
appInsights.trackEvent({
name: "Resolution",
properties: {
width: 300,
height: 500,
tenant: 'some tenant name'
},
});
打扰一下,先生,您能否添加有关您的问题的更多详细信息?
我在我的react app中添加了app sights,我发现在日志查询中可以看到自定义事件。
我正在尝试为我的 SPA 应用设置 azure applicationinsights。
除默认指标外,我不想记录一些自定义内容,例如本例中的内容:分辨率和租户名称。
事件似乎已正确发送,但在 Azure 门户中我看到这些值未定义:
我应该配置什么才能使这些值可见?
import { ApplicationInsights } from '@microsoft/applicationinsights-web';
const appInsights = new ApplicationInsights({
config: {
instrumentationKey,
enableAutoRouteTracking: true
}
});
appInsights.loadAppInsights();
appInsights.trackPageView();
appInsights.trackEvent({
name: "Resolution",
properties: {
width: 300,
height: 500,
tenant: 'some tenant name'
},
});
打扰一下,先生,您能否添加有关您的问题的更多详细信息?
我在我的react app中添加了app sights,我发现在日志查询中可以看到自定义事件。