Java Azure Application Insights codeless agent在应用程序映射中不显示cloudRoleInstance和cloudRoleName
我在Java应用程序上使用Azure Application Insights,我在JAR(Java无代码代理3.0.0)旁边添加了一个ApplicationInsights.json文件,但roleName和roleInstance并没有被推送到Application InsightsJava Azure Application Insights codeless agent在应用程序映射中不显示cloudRoleInstance和cloudRoleName,java,azure,azure-application-insights,telemetry,Java,Azure,Azure Application Insights,Telemetry,我在Java应用程序上使用Azure Application Insights,我在JAR(Java无代码代理3.0.0)旁边添加了一个ApplicationInsights.json文件,但roleName和roleInstance并没有被推送到Application Insights { "instrumentationSettings": { "connectionString": "Inst
{
"instrumentationSettings": {
"connectionString": "InstrumentationKey=XXX..XXX"
},
"preview": {
"roleName": "MYROLE",
"roleInstance": "myinstance"
}
}
当我转到Azure门户中的日志选项卡时,传入数据上的roleInstance字段仍然设置为机器名,并且roleName不在传入数据中
可以读取JSON文件,因为它包含my Application Insights资源的InstrumentationKey。根据此()“预览”应该是“instrumentationSettings”的一部分:
根据此()“预览”应该是“instrumentationSettings”的一部分:
{
"instrumentationSettings": {
"connectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000",
"preview": {
"roleName": "my cloud role name"
}
}
}