feat(metrics): add per-domain HTTP request rate metrics

This commit is contained in:
2026-04-14 12:43:59 +00:00
parent 490a310b54
commit 46155ab12c
10 changed files with 485 additions and 9 deletions
+4 -1
View File
@@ -83,6 +83,9 @@ tap.test('should verify new metrics API structure', async () => {
expect(metrics.throughput).toHaveProperty('history');
expect(metrics.throughput).toHaveProperty('byRoute');
expect(metrics.throughput).toHaveProperty('byIP');
// Check request methods
expect(metrics.requests).toHaveProperty('byDomain');
});
tap.test('should track active connections', async (tools) => {
@@ -273,4 +276,4 @@ tap.test('should clean up resources', async () => {
await assertPortsFree([echoServerPort, proxyPort]);
});
export default tap.start();
export default tap.start();