我有一些遗留代码,托管在 Azure WebJob (.exe) 中,为了记录到自定义事件提供程序,正在生成大量的 ETW 事件。
有什么简单方法可以将这些 ETW 事件轻松地传输到 Application Insights 中吗?我希望它们能够出现在同一 AI 实例中,该实例托管着我的网站和 WebJob。
我有一些遗留代码,托管在 Azure WebJob (.exe) 中,为了记录到自定义事件提供程序,正在生成大量的 ETW 事件。
有什么简单方法可以将这些 ETW 事件轻松地传输到 Application Insights 中吗?我希望它们能够出现在同一 AI 实例中,该实例托管着我的网站和 WebJob。
<Add Type="Microsoft.ApplicationInsights.Samples.ETWTrackingModule, YourAssemblyName">
<TrackEvent>True</TrackEvent>
<TrackTrace>True</TrackTrace>
<EventSources>
<Add Name="System.Collections.Concurrent.ConcurrentCollectionsEventSource" EventLevel="LogAlways"/>
<Add Name="System.Diagnostics.Eventing.FrameworkEventSource" EventLevel="LogAlways"/>
</EventSources>
</Add>