Diagnostics and Metrics continues using the Host class to configure logging options. You also learn about reading metric information that’s offered from some NET providers, using Visual Studio App Center, and extending logging for distributed tracing with OpenTelemetry.
This chapter contains the following code samples:
- LoggingSample (
ILogger
) - OpenTelemetrySample (logging and distributed tracing)
- MetricsSample (
EventSource
, event counters) - WindowsAppAnalytics (WinUI application with Visual Studio AppCenter)
- WebAppWithAppInsights (Application Insights)
See WinUI for building and running WinUI applications.
Starting with version 4.4 of the App Insights libraries, WinUI is supported! After library updates, the WinUI sample application is functional (after you add your App Insights id) with App Insights!
For code comments and issues please check Professional C#'s GitHub Repository
Please check my blog csharp.christiannagel.com for additional information for topics covered in the book.
Thank you!