我可以在后台代理中使用App Insights吗? [英] Can I use App Insights in a background agent?

查看:33
本文介绍了我可以在后台代理中使用App Insights吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向Windows Phone 8应用程序添加分析,这一切都很好,除了我现在想跟踪我的后台代理何时触发特定事件.

App Insights支持吗?

解决方案

我想说Application Insights确实支持您所描述的方案. Application Insights的最新版本应支持后台任务.但是,您应该使用"核心"程序包,而不要使用完整的平台程序包./p>

此核心软件包提供了将遥测发送到AppInsights所需的所有API.它不提供任何自动上下文或遥测集合,因此不具有任何依赖关系(例如,在调度程序上),因此无法执行后台任务.

我们很想听听有关此方案如何为您工作的更多信息.

I want to add analytics to my Windows Phone 8 app and that's all fine except I now want to trace when my background agent triggers a specific event.

Does App Insights support this?

解决方案

I'd like to say that Application Insights does support the scenario you are describing. Recent versions of the Application Insights should support background tasks. However, you should use the "core" package, and not the full platform package.

This core package provides all the APIs needed to send telemetry to AppInsights. It doesn't provide any of the automatic context or telemetry collection, and hence doesn't have any dependencies (for example on the dispatcher) which allows it to work on a background task.

We would love to hear more about how this scenario is working out for you.

这篇关于我可以在后台代理中使用App Insights吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆