In addition to `getRejectedRequestCount()` and `getState()`, it should be possible to add more detailed plugin diagnostics. **Proposed metrics:** - Memory/heap consumption (could add an allocator shim that tracks heap memory used) - CPU usage - Total successful calls - Total failed/error calls - Call latency (min/max/avg/p99) - Active concurrent request count - Throughput (requests/sec) **Considerations:** - Use a feature flag, make it optional - Some metrics (CPU, memory) may require platform-specific implementations (sysinfo crate?) - Consider a structured `PluginDiagnostics` response object vs individual getters - Latency tracking adds overhead - consider making it opt-in (feature flag) - May want time-windowed metrics (last 1m, 5m, 15m) vs cumulative
Activity