~/talk

Behind the Code: Design Choices in OpenTelemetry .NET Metrics API and SDK

Talkat OTel Community Day North America 2024 · on Tuesday, 2024-06-25· at 14:55· 445· [observability, dotnet]
links:none on file
slides:none on file

OpenTelemetry .NET Metrics API and SDK aim for zero heap allocation by adding overloads for 1–3 attributes, a stack-only ReadOnlySpan handoff and a struct TagList that stays allocation-free up to eight tags. The SDK uses a read-optimized dictionary that points to separate metric points updated with atomic ops, avoids costly attribute sorting by caching the first-seen attribute order, and runs long stress tests. Results show roughly 50M measurements/sec on a 16‑core machine with per-measurement latency as low as ~10 ns for simple cases.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45Design goals for OpenTelemetry .NET Metrics
  3. 4:57Zero-allocation API design
  4. 6:21SDK architecture challenges
  5. 8:48Dictionary contention in SDK
  6. 11:38Attribute sorting optimization
  7. 14:05Zero-allocation data transfer
  8. 15:48Benchmark results
  9. 16:52Testing reliability
  10. 17:14Best practices for SDK
  11. 18:19Future challenges
~/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.