Observability
Testing OpenTelemetry Instrumentation: Validating Spans and Trace Propagation
OpenTelemetry instrumentation can silently break—spans stop being created, attributes go missing, or trace context fails to propagate across service boundaries. The OTel SDK ships with an InMemorySpanExporter specifically for testing: it captures spans in memory so you can assert their structure without running a collector. Key Takeaways InMemorySpanExporter is