feat: azoth improvements — observability, LRU eviction, alloy interop, error context#30
Merged
johnny-emp merged 1 commit intomainfrom Feb 14, 2026
Merged
Conversation
639213b to
40f536e
Compare
…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>
40f536e to
814d4bd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
observefeature with ametricsmodule for emitting counters, histograms, and gaugesResultExttrait and.context()method onAzothErrorfor richer debugging infoPreflightCacheto support configurable FIFO and LRU eviction policies viaEvictionPolicyFromimpls forazoth::U256<->alloy_primitives::U256under thealloyfeature flagrecord_success()/record_failure()methods for async operation trackingprojection_connection()as deprecated in favor of read-poolquery()/query_async()EvictionPolicyandResultExtfrom the top-level azoth crateTest plan
cargo test --workspace --lib)--features alloyand--features observeMade with Cursor