Major changes
The changes in this minor release mostly concern the server interpreters. The request handling result that is passed through the interceptor stack now contains additional metadata which allows logging & metrics interceptors to be more precise. If you have custom interceptors, implement custom metrics or custom log integrations, you might need to adjust your source code.
Specific changes:
- the requests-active metrics now isn't labeled with the request path or path template, but counts each and every request that is handled by tapir. That's because the requests are now counted regardless if they end up being handled by an endpoint, or if there's no endpoint that matches the request.
- metrics (the
EndpointMetrictrait) now has additional callbacks, which can be specified, when the request can't be decoded by an endpoint, or when an interceptor provides a response beforehand. - the logging interceptor will now log both the exception stack trace, and the response generated by the exception interceptor. Moreover, the logging & exception interceptors are combined into one to implement his
- the logging interceptor will now log rejection responses and CORS responses
- the ordering of interceptors changed: now logging & exceptions come before the rejection & cors ones
For more details see #4943
What's Changed
- Update to Ox 1.0.2 in nettyServerSync3 (#4960) @adriaanm
- More precise metrics & logging (#4943) @adamw
Dependency updates
- Update armeria to 1.34.1 (#4961) @softwaremill-ci
- Update zio-http to 3.7.1 (#4958) @softwaremill-ci
- Update sttp-mock-server, ... to 1.12.6 (#4956) @softwaremill-ci