Add frontend performance metrics pipeline to Prometheus
Collect browser-side worker round-trips, computation times, main-thread operations, and feature counts, batch them client-side, and expose as Prometheus histograms via a new POST /api/perf endpoint.
This commit is contained in:
parent
c24c3a545c
commit
d90fa38776
10 changed files with 188 additions and 5 deletions
|
|
@ -9,6 +9,7 @@ from api.auth import get_current_user
|
|||
from api.config import DEV_TIER_ORIGINS, PROD_TIER_ORIGINS, APP_ENV
|
||||
from api.decision_routes import decision_router
|
||||
from api.passkey_routes import passkey_router
|
||||
from api.perf_routes import perf_router
|
||||
from api.poi_routes import poi_router
|
||||
from api.ws_routes import ws_router
|
||||
from api.rate_limit_config import RateLimitConfig
|
||||
|
|
@ -105,6 +106,7 @@ app = FastAPI(
|
|||
openapi_url=None if APP_ENV == "production" else "/openapi.json",
|
||||
)
|
||||
app.include_router(passkey_router)
|
||||
app.include_router(perf_router)
|
||||
app.include_router(poi_router)
|
||||
app.include_router(decision_router)
|
||||
app.include_router(ws_router)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue