Get the source code for this video for FREE → https://the-dotnet-weekly.ck.page/opentelemetry
☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic
If you're building or maintaining distributed .NET applications, understanding how they behave is key to ensuring reliability and performance. Distributed systems offer flexibility but introduce complexity, making troubleshooting a headache. Understanding how requests flow through your system is crucial for debugging and performance optimization.
OpenTelemetry is an open-source observability framework that makes this possible.
In this video, I'll explain how to introduce OpenTelemetry instrumentation in .NET. We will also configure an exporter and monitor the OpenTelemetry data from the Aspire Dashboard.
Introduction to Distributed Tracing With OpenTelemetry in .NET
https://www.milanjovanovic.tech/blog/introduction-to-distributed-tracing-with-opentelemetry-in-dotnet
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech
Read my Blog here:
https://www.milanjovanovic.tech/blog
Chapters
0:00 What is OpenTelemetry?
1:13 OpenTelemetry NuGet packages
2:20 Configure OpenTelemetry services
5:02 Adding an API endpoint
7:11 Aspire Dashboard setup
8:56 Observing application traces, logs, metrics
11:09 Adding custom OpenTelemetry metrics