Skip to content

v1.16.0

Compare
Choose a tag to compare
@srijan-27 srijan-27 released this 05 Aug 07:01
· 931 commits to development since this release
a51f573

Release v1.16.0

✨ Features

  • Application will now gracefully shutdown to prevent data loss during application termination
    All the processes (go-routines) will be awaited to finish before shutting down. Currently, the timeout for shutdown is 30 seconds. Will be making it configurable in upcoming release.

  • Enhanced query parameter handling to support multiple values
    Previously, only a single value was supported for query params with Param(key string) string method. Now, added another method Params(key string) []string which returns array of values passed for given query param.
    Example:

    If URL is 
     - http://order-service/orders?id=123,234
     - http://order-service/orders?id=123&id=234
     
    Then ctx.Params("id") will return ["123", "234"]
    
  • Enhanced security with SSL support for PostgreSQL connections
    Default certificates can now be used as SSL, by configuring DB_SSL_MODE as require.
    Currently this is only supported with PostgreSQL. Custom certificates and other DBs will be supported in future releases.

🛠 Enhancements

  • Improved logging for tracer configs validation
    Tracing is only enabled when both TRACE_EXPORTER and TRACER_URL are provided, so added error logs if any one of them is provided and the other is missing.

    Screenshot 2024-08-05 at 12 24 53 PM Screenshot 2024-08-05 at 12 27 58 PM
  • Improved tracing with OpenTelemetry protocol integration
    Tracing can now be configured as otel protocol by configuring TRACE_EXPORTER as otlp, and providing TRACER_URL.

🐞 Fixes

  • Resolved panic caused by passing non-pointer objects in AddRESTHandlers method
    App was panicking while initialising if the argument is passed by value to AddRESTHandlers method. Since, the method only accepts arguments passed by reference, added validations and error log instead of panic.