Skip to content

armeria-0.70.0

Choose a tag to compare

@trustin trustin released this 28 Aug 07:27
e944d62

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 StartStopSupport which simplifies the implementation of asynchronous start-stop style life cycle #1344

    public 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 hostname command should be lowered from WARN to DEBUG, because some distributions do not have hostname command. #1333 #1348
  • RequestContext is not pushed for some gRPC callbacks such as onReady(). #1338

Deprecations

  • RequestContextCurrentTraceContext.INSTANCE has been deprecated in favor of RequestContextCurrentTraceContext.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