Your go-to microservice framework for any situation, from the creator of Netty et al. You can build any type of microservice leveraging your favorite technologies, including gRPC, Thrift, Kotlin, Retrofit, Reactive Streams, Spring Boot and Dropwizard.
Motivation:
An event loop of the
Channel
of a request is used to subscribe to a returnedHttpResponse
. https://github.com/line/armeria/blob/3112b50cb6d2bd0cd31bac17796c5e6a01cc347c/core/src/main/java/com/linecorp/armeria/server/HttpServerHandler.java#L453-L457 The channel event loop is not a context-aware event loop, soServiceRequestContext
is not available in the thread local. As a result, request-scoped MDC won't work.Modifications:
ServiceRequestContext
before callingServerErrorHandler.onServiceException()
Result:
ServiceRequestContext
is now correctly propagated toServerErrorHandler
.