* Mark all threads/pools as daemon.
* Move setDaemon calls inside try blocks as they can throw a security exception.
* Add javadoc comment about possibility of SecurityException.
* Create common/DaemonThreadFactory and adjust all thread creation to use it.
* Apply a name prefix in the DaemonThreadPool; rework and simplify several calling sites accordingly.
* Small cleanups in async processor
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
* Customize the log messages for different actions happening after shutdown
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
* Avoid calling processors that do not require an event.
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
* Add tests for NoopSpanProcessor
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
* first implementation of ForceFlush
* Update sdk/src/main/java/io/opentelemetry/sdk/trace/SpanProcessor.java
Co-Authored-By: John Watson <jkwatson@gmail.com>
* Rename flush -> shutdown. Add test
* Better wording in Javadoc
Co-authored-by: John Watson <jkwatson@gmail.com>
* Switch to use pluginManagement, Use gradle plugin for jmh.
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
* Fix jmh report
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
* Use ' for the moment for plugin ids in main gradle
* Introduce automatic module names into all libraries being built.
* Centralise manifest config of automatic module name into root build.gradle file.
* Adding empty new lines
* Add an AsyncSpanProcessor that uses Disruptor.
* Fix comments.
* Cleanup print messages and simplify tests
* Enforce shutdown to wait for all the processors to finish shutdown.