Automating Observability With Roslyn Source Generators

Denis Ekart

View at original site


Collecting logs, traces, and metrics in .NET applications has become a breeze recently. With support for automatic instrumentation and an increasing number of libraries starting to generate telemetry signals, it's easier than ever to build observable software.

Manually instrumenting your existing software can be a pain, though. Instead of spending valuable time on this, what if we let the Roslyn compiler do it for us?

Join Denis in a fun coding session, where we will automate the process of instrumenting our codebase using Roslyn source generators. We will implement a well-known structural design pattern using incremental source generators and a sprinkle of OpenTelemetry.

About the Presenter

Denis Ekart

Denis Ekart is a Lead Software Engineer at 13|37. He is a highly driven and innovative engineer with nearly a decade of professional experience in software design and development. His primary interests include designing and building performant cloud-native solutions. He has extensive knowledge and understanding of the .NET ecosystem, including ample experience in cloud technologies such as Microsoft Azure.

Related Resources

C# Experimental Attribute.
C# Experimental Attribute.
Mark a block of code as experimental so other developers are aware of its status.
Refactor expressions to use pattern matching
Refactor expressions to use pattern matching
Use pattern matching on properties in Boolean logic for more readable and efficient code.
.NET Collections and Data Structures
.NET Collections and Data Structures
Learn how to apply the right collection for the task at hand.