Don't Wrap OpenTelemetry — You're Probably Hurting More Than Helping
- OpenTelemetry
- OTel .NET
- OTel Weaver
AI Summary
Building custom wrappers or abstractions over the OpenTelemetry API often harms performance, increases maintenance overhead, and prevents developers from learning OTel standards. Anti-patterns like forcing collection allocations or wrapping instrument lookups destroy the zero-allocation design of OTel. Instead of wrapping, teams should use official documentation, built-in testing exporters like InMemoryExporter, and compile-time code generation if strict governance is required.
Why it matters
Many engineering teams mistakenly believe wrapping third-party telemetry APIs improves simplicity or testability. In reality, it introduces performance bottlenecks, thread synchronization overhead in hot paths, and vendor lock-in to an internal custom standard instead of industry best practices.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.