Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions openfeature-provider/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ prost-build = "0.12"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
num_cpus = "1.16"
wiremock = "0.6"

[[example]]
name = "demo"
Expand Down
10 changes: 6 additions & 4 deletions openfeature-provider/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A high-performance OpenFeature provider for [Confidence](https://confidence.spot
- **Local Resolution**: Evaluates feature flags locally using the native Rust resolver
- **Low Latency**: No network calls during flag evaluation
- **Automatic Sync**: Periodically syncs flag configurations from Confidence
- **Exposure Logging**: Fully supported exposure logging and resolve analytics
- **Exposure Logging**: Fully supported exposure logging and resolve analytics with automatic retry on transient failures
- **OpenFeature Compatible**: Works with the standard OpenFeature Rust SDK
- **Async/Await**: Built on Tokio for efficient async operations

Expand Down Expand Up @@ -220,10 +220,12 @@ fn main() {
```

The provider logs at different levels:
- `DEBUG`: Flag resolution details, state updates
- `DEBUG`: Flag resolution details, state updates, individual retry attempts
- `INFO`: Provider initialization, configuration
- `WARN`: Non-critical issues, fallbacks
- `ERROR`: Failures, network errors
- `WARN`: Non-critical issues, fallbacks, log delivery failures after retries exhausted
- `ERROR`: Failures, non-retryable HTTP errors

Flag log delivery retries up to 3 times on transient failures (5xx, 408, 429) with exponential backoff (500ms base, 2x multiplier, ±10% jitter). Server `Retry-After` headers are respected when present.

## Shutdown

Expand Down
Loading