Networking telemetry in .NET
The .NET networking stack is instrumented at various layers. .NET gives you the option to collect accurate timings throughout the lifetime of an HTTP request using metrics, distributed tracing, event counters, and events.
- Networking metrics: Starting with .NET 8, the HTTP and the name resolution (DNS) components are instrumented using the modern System.Diagnostics.Metrics API. These metrics were designed in cooperation with OpenTelemetry and can be exported to various monitoring tools.
- Distributed tracing:
HttpClient
is instrumented to emit distributed tracing activities (also known as spans). - Networking events: Events provide debug and trace information with accurate timestamps.
- Networking event counters: All networking components are instrumented to publish real-time performance metrics using the EventCounters API.
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.