~/talk

Automating Observability With Roslyn Source Generators

Talkat JetBrains .NET Day Online 2023 · on Tuesday, 2023-09-26· [developer-experience, dotnet]
links:none on file
slides:none on file

Automates instrumentation by generating decorator classes that start OpenTelemetry activities for every public interface, using Roslyn incremental source generators plus an Otel collector and Jaeger; the generator emits decorator code, an extension that replaces registrations at startup, and produces full traces showing every method call so debugging is easier — it works but only for interfaces and is additive. Switching to interceptors in .NET 8 removes the interface requirement but is a preview feature with limits. OpenTelemetry + Roslyn is viable at scale.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17Observability challenge
  3. 6:36Demo: OpenTelemetry basics
  4. 12:44Manual vs automatic limits
  5. 18:56Automating with Roslyn
  6. 21:05Building the generator
  7. 31:01Decorators integration
  8. 35:03Generator limits and future
  9. 36:32Introducing .NET 8 interceptors
  10. 42:43Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.