Skip to content

feat: azoth improvements — observability, LRU eviction, alloy interop, error context#30

Merged
johnny-emp merged 1 commit intomainfrom
feat/azoth-improvements
Feb 14, 2026
Merged

feat: azoth improvements — observability, LRU eviction, alloy interop, error context#30
johnny-emp merged 1 commit intomainfrom
feat/azoth-improvements

Conversation

@johnny-emp
Copy link
Contributor

Summary

  • Observability: Add optional observe feature with a metrics module for emitting counters, histograms, and gauges
  • Error context: Add ResultExt trait and .context() method on AzothError for richer debugging info
  • Preflight cache: Refactor PreflightCache to support configurable FIFO and LRU eviction policies via EvictionPolicy
  • Alloy interop: Add From impls for azoth::U256 <-> alloy_primitives::U256 under the alloy feature flag
  • Circuit breaker: Add public record_success() / record_failure() methods for async operation tracking
  • Deprecation: Mark projection_connection() as deprecated in favor of read-pool query() / query_async()
  • Re-exports: Expose EvictionPolicy and ResultExt from the top-level azoth crate

Test plan

  • All existing unit tests pass (cargo test --workspace --lib)
  • Preflight cache benchmarks compile and run
  • Feature-gated code compiles with --features alloy and --features observe

Made with Cursor

@johnny-emp johnny-emp force-pushed the feat/azoth-improvements branch 2 times, most recently from 639213b to 40f536e Compare February 14, 2026 02:52
…and circuit breaker enhancements

- Add optional `observe` feature with metrics module (counters, histograms, gauges)
- Add `ResultExt` trait and `context()` method on `AzothError` for richer error reporting
- Refactor `PreflightCache` to support configurable FIFO and LRU eviction policies
- Add `From` impls for `azoth::U256` <-> `alloy_primitives::U256` under `alloy` feature
- Add public `record_success()` / `record_failure()` methods on `CircuitBreaker`
- Deprecate `projection_connection()` in favor of read pool `query()` / `query_async()`
- Re-export `EvictionPolicy` and `ResultExt` from top-level crate

Co-authored-by: Cursor <cursoragent@cursor.com>
@johnny-emp johnny-emp force-pushed the feat/azoth-improvements branch from 40f536e to 814d4bd Compare February 14, 2026 02:53
@johnny-emp johnny-emp merged commit d56e10c into main Feb 14, 2026
8 checks passed
@johnny-emp johnny-emp deleted the feat/azoth-improvements branch February 14, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant