fix(tradein/audit): exclude /api/v1/admin/* from api_request events #2522

Merged
lekss361 merged 1 commit from fix/tradein-exclude-admin-from-activity into main 2026-07-13 20:55:17 +00:00

1 commit

Author SHA1 Message Date
bot-backend
5025732d12 fix(tradein/audit): exclude /api/v1/admin/* from api_request events
All checks were successful
CI Trade-In / changes (pull_request) Successful in 7s
CI / changes (pull_request) Successful in 7s
CI Trade-In / frontend-checks (pull_request) Has been skipped
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Has been skipped
CI Trade-In / backend-tests (pull_request) Successful in 4m52s
Admin viewing the audit/analytics dashboards hits /api/v1/admin/* which the
request-audit middleware logged as api_request — polluting top_paths and
activity counts with the dashboards' own traffic. Skip api_request for admin
paths; keep login (admin sign-in from an IP is still valid audit).
2026-07-13 23:49:13 +03:00