Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin 如何从AppCenter中删除用户Id和用户\u Id_Xamarin_Azure Application Insights_Visual Studio App Center - Fatal编程技术网

Xamarin 如何从AppCenter中删除用户Id和用户\u Id

Xamarin 如何从AppCenter中删除用户Id和用户\u Id,xamarin,azure-application-insights,visual-studio-app-center,Xamarin,Azure Application Insights,Visual Studio App Center,有没有办法通过nuget获取AppCenter生成的用户Id 基于此,AppCenter中有两种类型的用户id。我已经在使用SetUser,但在AppInsights中导出数据后,看起来查询是用AppCenter生成的查询完成的。为了检索与我的用户id相关的分析,我想将两者连接起来,但我找不到通过AppCenter nuget检索生成的用户id的任何信息/方法。在对该主题进行更多搜索和调查后,我发现这是AppCenter分析日志的已知问题。为了绕过它,您可以使用CustomProperties字

有没有办法通过nuget获取AppCenter生成的用户Id


基于此,AppCenter中有两种类型的用户id。我已经在使用SetUser,但在AppInsights中导出数据后,看起来查询是用AppCenter生成的查询完成的。为了检索与我的用户id相关的分析,我想将两者连接起来,但我找不到通过AppCenter nuget检索生成的用户id的任何信息/方法。

在对该主题进行更多搜索和调查后,我发现这是AppCenter分析日志的已知问题。为了绕过它,您可以使用CustomProperties字段,然后查询该字段,如示例所示

如果不想再单击一个链接,则查询如下所示:

customEvents
| extend properties = todynamic(tostring(customDimensions.Properties))
| extend userID = tostring(properties.UserID) // assuming you named the property UserID on the client side
| where isnotempty(userID) // this will be empty if you haven't set it as a property in the SDK

App Center SDK支持设置用于增加崩溃报告的用户ID(
AppCenter.setUserId(“您的用户ID”);
)。设置用户ID后,您可以使用App Center的搜索功能搜索与ID关联的特定崩溃报告。您可以查看是,我知道这一部分,但git的评论指出,AppCenter中有两个用户id。我可以通过您的方法设置的,以及由它们生成的。我想实现的是将这两个连接起来,因为我看到有些崩溃/日志不知何故没有连接到setUserId,但它们有AppCenter生成的Id。这样我就可以找到与一个用户相关的所有日志。不确定我是否解释得很好,问什么是不清楚的。啊,再看看你的链接,我想我说的id就是这个。但是InstallId是否与github评论中的用户id相同?它们不同,
userid
是一个可选字符串,用于将日志与用户关联。
Install ID
是每次使用App Center SDK安装应用程序时生成的新的唯一安装标识符。此ID用于区分数据和唯一设备。AppCenter服务需要ID才能正常工作。我们谈论的不是我感觉的同一件事:(在AppInsights中从AppCenter导出数据后,有2个用户ID(如问题本身中git的链接所述)。一个在自定义事件属性中,另一个在自定义属性中。自定义属性中的一个是可选的,si通过AppCenter.SetUserId设置。我想知道如何获取自定义事件属性中的一个,我想现在它实际上是安装ID。