feat(phase-4): WS4 — Agent Marketplace (public registry, pagination, filters)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
SentryAgent.ai Developer
2026-04-02 10:17:51 +00:00
parent d1e6af25aa
commit 89c99b666d
12 changed files with 417 additions and 1 deletions

View File

@@ -147,3 +147,15 @@ export const dbPoolWaitingRequests = new Gauge({
help: 'Current number of requests waiting for a PostgreSQL connection.',
registers: [metricsRegistry],
});
/**
* Total number of authenticated API calls per tenant.
* Incremented on every request that passes auth middleware successfully.
* Labels: tenant_id (organization_id from the JWT payload)
*/
export const tenantApiCallsTotal = new Counter({
name: 'agentidp_tenant_api_calls_total',
help: 'Total number of authenticated API calls, labeled by tenant.',
labelNames: ['tenant_id'] as const,
registers: [metricsRegistry],
});