As of now,
- SimpleSpanProcessor ensures that it is not possible to concurrently call Exporter::Shutdown().
- SimpleSpanProcessor ensures that it is not possible to concurrently call Exporter::Export()
- But it is still possible to call Exporter::Shutdown() and Exporter::Export() concurrently, and if that happens, is_shutdown/isShutdown variable defined in different exporters need to be protected.
opentelemetry::common::SpinLockMutex is lock-free, and one option could be to protect is_shutdown with that.
As of now,
opentelemetry::common::SpinLockMutexis lock-free, and one option could be to protect is_shutdown with that.