armeria-0.70.0
New features
-
Added
RequestContextCurrentTraceContext.newBuilder()which allows a user to customize the Zipkin context, such as decorating a trace scope #1328 -
Armeria now provides Spring configuration metadata for better IDE integration. #1340
-
Added a new utility class
StartStopSupportwhich simplifies the implementation of asynchronous start-stop style life cycle #1344public class MyService implements AutoCloseable { private final StartStopSupport<Void, MyServiceListener> startStop = new StartStopSupport<>(ForkJoinPool.commonPool()) { @Override protected CompletableFuture<Void> doStart() { /* .. Implement startup .. */ } @Override protected CompletableFuture<Void> doStop() { /* .. Implement shutdown .. */ } @Override protected void notifyStarting(MyServiceListener listener) { listener.myServiceStarted(this); } ... }; public CompletableFuture<Void> start() { return startStop.start(true /* fail if started */); } public CompletableFuture<Void> stop() { return startStop.stop(); } public void addListener(MyServiceListener listener) { startStop.addListener(listener); } @Override public void close() { startStop.close(); } } MyService myService = new MyService(); CompletableFuture<Void> startFuture = myService.start(); CompletableFuture<Void> stopFuture = myService.stop();
Bug fixes
- The level of the log message about missing
hostnamecommand should be lowered fromWARNtoDEBUG, because some distributions do not havehostnamecommand. #1333 #1348 RequestContextis not pushed for some gRPC callbacks such asonReady(). #1338
Deprecations
RequestContextCurrentTraceContext.INSTANCEhas been deprecated in favor ofRequestContextCurrentTraceContext.DEFAULT. #1328
Dependencies
- Brave 5.1.5 -> 5.2.0
- Hibernate Validator 6.0.11 -> 6.0.12
- Netty 4.1.28 -> 4.1.29
- netty-tcnative-boringssl-static 2.0.12 -> 2.0.14
- RxJava 2.2.0 -> 2.2.1
- Tomcat 9.0.10 -> 9.0.11, 8.5.32 -> 8.5.33
