~/talk

DiagnosticSourcery 101

Talkat NDC London 2019 · 2019-01-30..02-01· [observability]
slides:none on file

DiagnosticSource is a built-in .NET mechanism that emits structured events and activities (with automatic timing, parent IDs and baggage for distributed tracing) and is already used by ASP.NET Core, EF Core and HttpClient. Example: adding diagnostics found a loop issuing ~20,000 upstream calls that cost ~1 minute; a demo service emits original image size 563K → 32K and activity durations to InfluxDB (via a custom, allocation-free client using array pooling and System.Threading.Channels) and visualises them in Grafana/Chronograf. Subscription toggles enablement so there’s no overhead unless someone listens.

AI-written summary · about

  1. 0:00DiagnosticsSourcery intro
  2. 1:11Diagnostics and metrics matter
  3. 4:45Metrics vs logs explained
  4. 6:55What to measure in apps
  5. 12:02Measuring with DiagnosticSource
  6. 21:12Live code demo
  7. 30:02DiagnosticSource in .NET Core
  8. 33:58Distributed tracing challenges
  9. 42:15Activities and HTTP correlation
  10. 53:58Syntactic sugar for events
  11. 57:34Writing metrics to InfluxDB
  12. 1:01:16Summary and call to action
~/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.