HockeyApp 中自定义事件的自定义数据

Custom Data for Custom Events in HockeyApp

上下文:HockeyApp 可以跟踪自定义事件,这是目前可通过季前赛计划获得的功能。自定义事件有限制,包括

a limit of 300 unique event names per app per week.

可以通过调用特定的方法来跟踪事件,例如

HockeyApp.Metrics.MetricsManager.TrackEvent("MyEventName");

问题:我们面临的挑战是我们需要为每个事件记录自定义数据,例如时间戳信息。如何实现?

背景:我们目前使用 Application Insights 并记录性能信息和事件,例如执行请求需要多长时间。我们使用 HockeyApp 寻找解决方案(或解决方法)。

API documentation on github 表明它能够向事件添加属性和度量:

HockeyApp.MetricsManager.TrackEvent("Custom Event",
                            new Dictionary<string, string> { { "property", "value" } },
                            new Dictionary<string, double> { { "time", 1.0 } })

偶数名额有限但number of times an event can fire is not.