@@ -371,9 +371,41 @@ Follow these instructions to capture troubleshooting logs for your framework.
371371
372372The Application Insights SDK log `EventSource` has self-troubleshooting logs that can be captured by PerfView.
373373
374- To collect logs, download PerfView and run this command:
375-
376- `PerfView.exe collect -MaxCollectSec:300 -NoGui /onlyProviders=*Microsoft-ApplicationInsights-Core,*Microsoft-ApplicationInsights-Data,*Microsoft-ApplicationInsights-WindowsServer-TelemetryChannel,*Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Dependency,*Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Web,*Microsoft-ApplicationInsights-Extensibility-DependencyCollector,*Microsoft-ApplicationInsights-Extensibility-HostingStartup,*Microsoft-ApplicationInsights-Extensibility-PerformanceCollector,*Microsoft-ApplicationInsights-Extensibility-EventCounterCollector,*Microsoft-ApplicationInsights-Extensibility-PerformanceCollector-QuickPulse,*Microsoft-ApplicationInsights-Extensibility-Web,*Microsoft-ApplicationInsights-Extensibility-WindowsServer,*Microsoft-ApplicationInsights-WindowsServer-Core,*Microsoft-ApplicationInsights-LoggerProvider,*Microsoft-ApplicationInsights-Extensibility-EventSourceListener,*Microsoft-ApplicationInsights-AspNetCore,*Redfield-Microsoft-ApplicationInsights-Core,*Redfield-Microsoft-ApplicationInsights-Data,*Redfield-Microsoft-ApplicationInsights-WindowsServer-TelemetryChannel,*Redfield-Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Dependency,*Redfield-Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Web,*Redfield-Microsoft-ApplicationInsights-Extensibility-DependencyCollector,*Redfield-Microsoft-ApplicationInsights-Extensibility-PerformanceCollector,*Redfield-Microsoft-ApplicationInsights-Extensibility-EventCounterCollector,*Redfield-Microsoft-ApplicationInsights-Extensibility-PerformanceCollector-QuickPulse,*Redfield-Microsoft-ApplicationInsights-Extensibility-Web,*Redfield-Microsoft-ApplicationInsights-Extensibility-WindowsServer,*Redfield-Microsoft-ApplicationInsights-LoggerProvider,*Redfield-Microsoft-ApplicationInsights-Extensibility-EventSourceListener,*Redfield-Microsoft-ApplicationInsights-AspNetCore`
374+ To collect logs, download PerfView and run this PowerShell command:
375+
376+ ```PowerShell
377+ PerfView.exe collect -MaxCollectSec:300 -NoGui `
378+ /onlyProviders=*Microsoft-ApplicationInsights-Core,`
379+ *Microsoft-ApplicationInsights-Data,`
380+ *Microsoft-ApplicationInsights-WindowsServer-TelemetryChannel,`
381+ *Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Dependency,`
382+ *Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Web,`
383+ *Microsoft-ApplicationInsights-Extensibility-DependencyCollector,`
384+ *Microsoft-ApplicationInsights-Extensibility-HostingStartup,`
385+ *Microsoft-ApplicationInsights-Extensibility-PerformanceCollector,`
386+ *Microsoft-ApplicationInsights-Extensibility-EventCounterCollector,`
387+ *Microsoft-ApplicationInsights-Extensibility-PerformanceCollector-QuickPulse,`
388+ *Microsoft-ApplicationInsights-Extensibility-Web,`
389+ *Microsoft-ApplicationInsights-Extensibility-WindowsServer,`
390+ *Microsoft-ApplicationInsights-WindowsServer-Core,`
391+ *Microsoft-ApplicationInsights-LoggerProvider,`
392+ *Microsoft-ApplicationInsights-Extensibility-EventSourceListener,`
393+ *Microsoft-ApplicationInsights-AspNetCore,`
394+ *Redfield-Microsoft-ApplicationInsights-Core,`
395+ *Redfield-Microsoft-ApplicationInsights-Data,`
396+ *Redfield-Microsoft-ApplicationInsights-WindowsServer-TelemetryChannel,`
397+ *Redfield-Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Dependency,`
398+ *Redfield-Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Web,`
399+ *Redfield-Microsoft-ApplicationInsights-Extensibility-DependencyCollector,`
400+ *Redfield-Microsoft-ApplicationInsights-Extensibility-PerformanceCollector,`
401+ *Redfield-Microsoft-ApplicationInsights-Extensibility-EventCounterCollector,`
402+ *Redfield-Microsoft-ApplicationInsights-Extensibility-PerformanceCollector-QuickPulse,`
403+ *Redfield-Microsoft-ApplicationInsights-Extensibility-Web,`
404+ *Redfield-Microsoft-ApplicationInsights-Extensibility-WindowsServer,`
405+ *Redfield-Microsoft-ApplicationInsights-LoggerProvider,`
406+ *Redfield-Microsoft-ApplicationInsights-Extensibility-EventSourceListener,`
407+ *Redfield-Microsoft-ApplicationInsights-AspNetCore
408+ ```
377409
378410You can modify these parameters as needed:
379411
@@ -392,9 +424,41 @@ For more information, see:
392424
393425Alternatively, you can use a cross-platform .NET Core tool, [ dotnet-trace] ( /dotnet/core/diagnostics/dotnet-trace ) , for collecting logs that can provide further help in troubleshooting. This tool might be helpful for Linux-based environments.
394426
395- After you install `dotnet-trace`, run the following [dotnet-trace collect](/dotnet/core/diagnostics/dotnet-trace#dotnet-trace-collect) command in bash:
396-
397- `dotnet-trace collect --process-id <PID> --providers Microsoft-ApplicationInsights-Core,Microsoft-ApplicationInsights-Data,Microsoft-ApplicationInsights-WindowsServer-TelemetryChannel,Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Dependency,Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Web,Microsoft-ApplicationInsights-Extensibility-DependencyCollector,Microsoft-ApplicationInsights-Extensibility-HostingStartup,Microsoft-ApplicationInsights-Extensibility-PerformanceCollector,Microsoft-ApplicationInsights-Extensibility-EventCounterCollector,Microsoft-ApplicationInsights-Extensibility-PerformanceCollector-QuickPulse,Microsoft-ApplicationInsights-Extensibility-Web,Microsoft-ApplicationInsights-Extensibility-WindowsServer,Microsoft-ApplicationInsights-WindowsServer-Core,Microsoft-ApplicationInsights-LoggerProvider,Microsoft-ApplicationInsights-Extensibility-EventSourceListener,Microsoft-ApplicationInsights-AspNetCore,Redfield-Microsoft-ApplicationInsights-Core,Redfield-Microsoft-ApplicationInsights-Data,Redfield-Microsoft-ApplicationInsights-WindowsServer-TelemetryChannel,Redfield-Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Dependency,Redfield-Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Web,Redfield-Microsoft-ApplicationInsights-Extensibility-DependencyCollector,Redfield-Microsoft-ApplicationInsights-Extensibility-PerformanceCollector,Redfield-Microsoft-ApplicationInsights-Extensibility-EventCounterCollector,Redfield-Microsoft-ApplicationInsights-Extensibility-PerformanceCollector-QuickPulse,Redfield-Microsoft-ApplicationInsights-Extensibility-Web,Redfield-Microsoft-ApplicationInsights-Extensibility-WindowsServer,Redfield-Microsoft-ApplicationInsights-LoggerProvider,Redfield-Microsoft-ApplicationInsights-Extensibility-EventSourceListener,Redfield-Microsoft-ApplicationInsights-AspNetCore`
427+ After you install ` dotnet-trace ` , run the following [ dotnet-trace collect] ( /dotnet/core/diagnostics/dotnet-trace#dotnet-trace-collect ) bash command:
428+
429+ ``` bash
430+ dotnet-trace collect --process-id < PID> --providers \
431+ Microsoft-ApplicationInsights-Core,\
432+ Microsoft-ApplicationInsights-Data,\
433+ Microsoft-ApplicationInsights-WindowsServer-TelemetryChannel,\
434+ Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Dependency,\
435+ Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Web,\
436+ Microsoft-ApplicationInsights-Extensibility-DependencyCollector,\
437+ Microsoft-ApplicationInsights-Extensibility-HostingStartup,\
438+ Microsoft-ApplicationInsights-Extensibility-PerformanceCollector,\
439+ Microsoft-ApplicationInsights-Extensibility-EventCounterCollector,\
440+ Microsoft-ApplicationInsights-Extensibility-PerformanceCollector-QuickPulse,\
441+ Microsoft-ApplicationInsights-Extensibility-Web,\
442+ Microsoft-ApplicationInsights-Extensibility-WindowsServer,\
443+ Microsoft-ApplicationInsights-WindowsServer-Core,\
444+ Microsoft-ApplicationInsights-LoggerProvider,\
445+ Microsoft-ApplicationInsights-Extensibility-EventSourceListener,\
446+ Microsoft-ApplicationInsights-AspNetCore,\
447+ Redfield-Microsoft-ApplicationInsights-Core,\
448+ Redfield-Microsoft-ApplicationInsights-Data,\
449+ Redfield-Microsoft-ApplicationInsights-WindowsServer-TelemetryChannel,\
450+ Redfield-Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Dependency,\
451+ Redfield-Microsoft-ApplicationInsights-Extensibility-AppMapCorrelation-Web,\
452+ Redfield-Microsoft-ApplicationInsights-Extensibility-DependencyCollector,\
453+ Redfield-Microsoft-ApplicationInsights-Extensibility-PerformanceCollector,\
454+ Redfield-Microsoft-ApplicationInsights-Extensibility-EventCounterCollector,\
455+ Redfield-Microsoft-ApplicationInsights-Extensibility-PerformanceCollector-QuickPulse,\
456+ Redfield-Microsoft-ApplicationInsights-Extensibility-Web,\
457+ Redfield-Microsoft-ApplicationInsights-Extensibility-WindowsServer,\
458+ Redfield-Microsoft-ApplicationInsights-LoggerProvider,\
459+ Redfield-Microsoft-ApplicationInsights-Extensibility-EventSourceListener,\
460+ Redfield-Microsoft-ApplicationInsights-AspNetCore
461+ ```
398462
399463### Issues with trace logs
400464
0 commit comments