feat: add marketplace metrics, privacy features, and service registry endpoints

- Add Prometheus metrics for marketplace API throughput and error rates with new dashboard panels
- Implement confidential transaction models with encryption support and access control
- Add key management system with registration, rotation, and audit logging
- Create services and registry routers for service discovery and management
- Integrate ZK proof generation for privacy-preserving receipts
- Add metrics instru
This commit is contained in:
oib
2025-12-22 10:33:23 +01:00
parent fa5a6fddf3
commit a4d4be4a1e
260 changed files with 59033 additions and 351 deletions

View File

@@ -0,0 +1,16 @@
"""Prometheus metrics for the AITBC Coordinator API."""
from prometheus_client import Counter
# Marketplace API metrics
marketplace_requests_total = Counter(
'marketplace_requests_total',
'Total number of marketplace API requests',
['endpoint', 'method']
)
marketplace_errors_total = Counter(
'marketplace_errors_total',
'Total number of marketplace API errors',
['endpoint', 'method', 'error_type']
)