2 min read
KrakenD CE v2.8 released with improved Lua and OpenTelemetry
by Albert Lombarte
We’re thrilled to announce the release of KrakenD Community v2.8, packed with upgrades to Lua and OpenTelemetry, and a few key fixes to improve your API gateway experience. Let’s dive into the highlights of this release.
OpenTelemetry enhancements
In this release, OpenTelemetry gains the ability to override configurations at both the endpoint and backend levels. This new flexibility ensures you can fine-tune telemetry settings on a more granular level. In addition, several improvements address issues with multi-error handling, enhancing stability and reducing potential friction when working with complex setups.
Lua scripting upgrades
We’ve made significant improvements to Lua scripting, empowering developers with more robust debugging tools and helper methods:
- Error log decorator: Debugging Lua scripts just got easier with adding an error log decorator that provides precise information about the file and line where errors occur, helping you troubleshoot faster.
keyExists
helper: You can now easily check for the existence of keys in luaTable types. This addition simplifies validation logic and enhances code readability.- Improved table-to-array conversion: Lua now correctly converts tables with numeric-only indexes into arrays, resolving previous issues where such conversions could result in unintended maps.
Below, there is the full list of changes.
🚀 Summary of changes for CEv2.8
Improvements on Lua scripts and added OTEL override capabilities
- Added a new type of encoding to return content in YAML no matter the origin
- OpenTelemetry has now the ability to override configuration at endpoint and backend level
- Lua - Added an error log decorator to show the line and file where an error raised
-
Lua - Added method
keyExists
helper to checkluaTable
types. -
Lua - The
custom_error
function accepts now a third parameter to pass the content-type - Lua - Conversion from tables to arrays instead of maps when tables have all indexes numeric
- OpenTelemetry - Several fixes on configuration overrides and multiErrors
-
The
letgoapp/influx
namespace, which was available for historical reasons, has been removed from the configuration schema. Rename it totelemetry/influx
for a quick fix (which is also deprecated), or upgrade to OpenTelemetry for a long-term solution.
Upgrading to the latest version is always advised.
This release emphasizes developer efficiency on Lua and OpenTelemetry and is an excellent addition if you work with these two technologies.
Happy building! 🐙