feat(testing): add telemetry recording helpers - #110
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughAdded ChangesTelemetry recording
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to This opt-in testing feature adds telemetry recording helpers with documented deterministic and concurrency-safe behavior; no actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant ShieldPipeline as Shield pipeline
participant TelemetryRecorder
participant MeterListener
participant TestWaiter as Test waiter
ShieldPipeline->>TelemetryRecorder: Record callback event
MeterListener->>TelemetryRecorder: Deliver metric measurement
TelemetryRecorder->>TelemetryRecorder: Store sequenced snapshots
TestWaiter->>TelemetryRecorder: WaitForCallbackCountAsync or WaitForMetricCountAsync
TelemetryRecorder-->>TestWaiter: Complete when count is reached
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Closes #98
Adds an opt-in TelemetryRecorder to Kevlar.Testing for deterministic, concurrency-safe metric and callback capture. Records use immutable snapshots, copy tags immediately, preserve callback outcomes, and never retain pooled KevlarContext instances.
Validation:
Summary by CodeRabbit
New Features
Documentation