We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1723f79 commit 52b3ef8Copy full SHA for 52b3ef8
1 file changed
docs/cookbook/src/crates/rustapi_extras.md
@@ -283,8 +283,11 @@ The `replay` feature allows you to record production traffic and replay it local
283
See the [Time-Travel Debugging Recipe](../recipes/replay.md) for full details.
284
285
```rust
286
-use rustapi_extras::replay::{ReplayLayer, InMemoryReplayStore};
+use rustapi_extras::replay::{ReplayLayer, ReplayConfig, InMemoryReplayStore};
287
+
288
+let replay_config = ReplayConfig::default();
289
+let store = InMemoryReplayStore::new(1_000);
290
291
let app = RustApi::new()
- .layer(ReplayLayer::new(InMemoryReplayStore::new()));
292
+ .layer(ReplayLayer::new(replay_config).with_store(store));
293
```
0 commit comments