Skip to content

v0.1.14

Latest

Choose a tag to compare

@SanchithHegde SanchithHegde released this 17 Aug 12:09
· 2 commits to main since this release
Immutable release. Only release title and notes can be modified.
18423c5

0.1.14 (2026-08-17)

This release focuses on observability and configurability improvements, adding OpenTelemetry/Prometheus metrics export and making cache and database pool settings tunable. A few dependency updates are included as well.

Features

  • metrics:
    • Add support to export metrics in OpenTelemetry or Prometheus formats using metrics_utils crate (#72) by @SanchithHegde
    • Add metrics to instrument operations and system boundaries (#74) by @SanchithHegde
    • Add postgres pool connection lifecycle counters (#78) by @SanchithHegde

Refactors

  • cache: Make TTL, TTI and max capacity of caches configurable (#75) by @SanchithHegde
  • metrics: Unify all pull-based metrics as observable instruments and eliminate background collector (#79) by @SanchithHegde
  • postgres: Allow configuring pool and connection timeouts (#76) by @SanchithHegde
  • Migrate to use build_info and log_utils crates for build information and logging framework (#70) by @SanchithHegde

Documentation

  • Add sample config file documenting all available configuration options (#73) by @SanchithHegde

Build System / Dependencies

Database Migrations

No database migrations between v0.1.13 and v0.1.14.

Configuration Changes

This release includes the following configuration changes:

  • Renames metrics_server section to metrics, and accepts a mode to allow exporting in either OTLP or Prometheus formats.
  • Introduces a cache section to configure cache entry lifetimes and capacity.
  • Adds database pool timeout configuration (max_lifetime_secs, idle_timeout_secs, connection_acquire_timeout_secs, connect_timeout_secs).

Refer to the config.example.toml file for more information.

diff --git a/config/development.toml b/config/development.toml
index 6c726e6ffb17..4c206b07ec8c 100644
--- a/config/development.toml
+++ b/config/development.toml
@@ -1,35 +1,39 @@
-[metrics_server]
+[metrics]
+mode = "prometheus"
 host = "127.0.0.1"
 port = 6128

 [pool_config]
 pool = 2

 [server]
 host = "127.0.0.1"
 port = 5000

 [database]
 user = "db_user"
 password = "db_pass"
 host = "localhost"
 port = 5432
 dbname = "encryption_db"
 pool_size = 5
 min_idle = 2
 enable_ssl = false
+max_lifetime_secs = 1800
+idle_timeout_secs = 600
+connection_acquire_timeout_secs = 30
+connect_timeout_secs = 5

+[cache]
+time_to_live_secs = 30
+time_to_idle_secs = 30
+max_capacity = 10_000

 [multitenancy.tenants.public]
-cache_prefix = "public"
 schema = "public"

 [multitenancy.tenants.global]
-cache_prefix = "global"
 schema = "global"

 [log]
+enabled = true
 log_level = "debug"
 log_format = "console"

 [secrets]
 master_key = "6d761d32f1b14ef34cf016d726b29b02b5cfce92a8959f1bfb65995c8100925e"

Full Changelog: v0.1.13...v0.1.14