This release introduces significant enhancements to request handling, CLI authentication, logging capabilities, and observability. Key features include a new pre-routing hook for request manipulation before routing, enhanced CLI authentication supporting both Auth0 and API Key methods, custom log fields across all logging plugins, and improved tracing for programmatically invoked policies.
New Features 🎉#
-
Pre-routing hook - Introduces a powerful new hook that allows you to manipulate incoming requests before routing checks are performed. This enables use cases like making URLs case-insensitive or normalizing URL paths. Learn more about pre-routing hooks
-
Custom log fields for all logging plugins - All logging plugins now support a
fields
option that allows you to append custom fields to every log entry. This enhancement enables better log enrichment and correlation across your observability stack. See custom log fields documentation -
Tracing for programmatically invoked policies - Policies that are invoked programmatically now include proper tracing information, improving observability and debugging capabilities when policies call other policies within your API gateway. Learn about API monitoring with OpenTelemetry
Bug Fixes 🐛#
- Enhanced error handling - Strengthened error handling checks for the
throwOnError
configuration option, ensuring more predictable behavior when errors occur in your API gateway.
Documentation 📚#
- CLI command consistency - Updated the CLI documentation and commands to
consistently use
zuplo
instead of the shortenedzup
command, improving clarity and consistency across all documentation.