自从添加IntelliTrace以来,我注意到许多应用程序洞察力的异常,在Azure IaaS VM上运行时寻找Microsoft.WindowsAzure.ServiceRunTime.dll。
//边注
值得注意的是,这些异常似乎并没有在应用程序洞察力门户中报告,除了有时我注意到一些图表中异常的数很高,但无法找到异常细节(直到使用IntelliTrace).但这可能是一只红鲱鱼,因为它们可能正在被TopShelf吞食。
//边注
由于我的研究,我理解这个dll实际上是在Azure内,而不是nuget包。
不想向我的服务添加额外的先决条件,我倾向于添加扩展程序集引用并复制到本地。
版本不同,查找2.5.0.0,因此还添加了绑定重定向到2.7.0.0
但是这样做,现在会导致
我很小心,每次我修东西的时候,我都需要修理其他的东西,然后是别的东西.
让我回到原来的问题.实际的问题.:-)
我没有发现任何建议应用程序洞察,甚至需要安装Azure。这让我想知道,这些异常是否实际上是第一次出现的异常,其中Application只是询问Azure SDK是否已经安装?
作为参考,应用程序洞察力设置:
我的应用程序Insights包是:
<package id="Microsoft.ApplicationInsights" version="2.5.0" targetFramework="net462" />
<package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.4.0" targetFramework="net462" />
<package id="Microsoft.ApplicationInsights.DependencyCollector" version="2.5.0" targetFramework="net462" />
<package id="Microsoft.ApplicationInsights.PerfCounterCollector" version="2.5.0" targetFramework="net462" />
<package id="Microsoft.ApplicationInsights.WindowsServer" version="2.5.0" targetFramework="net462" />
<package id="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" version="2.5.0" targetFramework="net462" />我的配置包括以下TelemetryInitializers:
<TelemetryInitializers>
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.HttpDependenciesParsingTelemetryInitializer, Microsoft.AI.DependencyCollector"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureWebAppRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.BuildInfoConfigComponentVersionTelemetryInitializer, Microsoft.AI.WindowsServer"/>
</TelemetryInitializers>这些TelemetryModules:
<TelemetryModules>
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.DependencyTrackingTelemetryModule, Microsoft.AI.DependencyCollector">
<ExcludeComponentCorrelationHttpHeadersOnDomains>
<Add>core.windows.net</Add>
<Add>core.chinacloudapi.cn</Add>
<Add>core.cloudapi.de</Add>
<Add>core.usgovcloudapi.net</Add>
<Add>localhost</Add>
<Add>127.0.0.1</Add>
</ExcludeComponentCorrelationHttpHeadersOnDomains>
<IncludeDiagnosticSourceActivities>
<Add>Microsoft.Azure.EventHubs</Add>
<Add>Microsoft.Azure.ServiceBus</Add>
</IncludeDiagnosticSourceActivities>
</Add>
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.AI.PerfCounterCollector">
</Add>
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.DeveloperModeWithDebuggerAttachedTelemetryModule, Microsoft.AI.WindowsServer"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.UnhandledExceptionTelemetryModule, Microsoft.AI.WindowsServer"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.UnobservedExceptionTelemetryModule, Microsoft.AI.WindowsServer">
</Add>
</TelemetryModules>应用程序的洞察力是由其他人建立的,我想知道其中一个扩展是否会带来麻烦,它是用于windows服务的。
发布于 2018-03-09 00:15:58
应用程序洞察本身托管在Azure中,但Application本身不依赖于任何Azure SDK。(您不需要应用程序在蔚蓝中运行,就可以将数据发送到Application )
您可能正在使用的其他东西可能有Azure依赖项,但没有AI。
如果您正在查看有关.net输出的网站或vm度量,则该度量用于整个框架中抛出的异常。如果您在AI门户中没有看到异常,这意味着它们从未被AI处理或被AI跟踪。
https://stackoverflow.com/questions/49170519
复制相似问题