Commit Graph

15 Commits

Author SHA1 Message Date
Copilot acae441a99 Improve test coverage for puzzle, portal, monitoring packages (#264)
* Initial plan

* Add tests for puzzle, monitoring, portal packages

Co-authored-by: ribtoks <505555+ribtoks@users.noreply.github.com>

* Add registration disabled tests

Co-authored-by: ribtoks <505555+ribtoks@users.noreply.github.com>

* Address PR review comments: fix tests and use constants

Co-authored-by: ribtoks <505555+ribtoks@users.noreply.github.com>

* Fix audit tests with non-empty arrays and use constants for error strings

Co-authored-by: ribtoks <505555+ribtoks@users.noreply.github.com>

* Update audit.go

* Update audit.go

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ribtoks <505555+ribtoks@users.noreply.github.com>
2026-01-27 12:35:41 +02:00
Taras Kushnir 8a86a435b4 Fix typos 2026-01-24 08:43:48 +02:00
Taras Kushnir d2867e7101 Rename drop metric location 2026-01-23 17:34:22 +02:00
Taras Kushnir 9048bcaa5a Add timeouts for channel selects 2026-01-23 16:59:37 +02:00
Taras Kushnir b0c520eb4f Fix new API errors metric namespace 2025-12-17 17:49:04 +01:00
Taras Kushnir b959c00af8 Add create properties bulk API. related PrivateCaptcha/issues#45 2025-12-15 15:43:05 +01:00
Taras Kushnir b5af8aee13 Fix tests 2025-11-09 15:51:25 +02:00
Taras Kushnir 7dc6f65d2e Add a separate metrics for before-redirect http errors in portal 2025-11-09 12:54:00 +02:00
Taras Kushnir 4af7fc8bcf Rename X-Request-ID to X-Trace-ID for consistency 2025-07-08 14:49:51 +03:00
Taras Kushnir 9ec1ef8d65 Refactor caching layer
Main reason being otter/v2 release with APIs for sliding expiration.

- added new cache API to use Loader logic from otter/v2 (fetch from DB)
- main direction of work is improving "negative caching" performance
  (currently it is still intertwined with the main cache)
- expose new Prometheus metric for cache hit ratio
2025-06-21 14:16:28 +03:00
Taras Kushnir b51767a7a1 Set request ID header for API responses 2025-06-17 14:34:03 +03:00
Taras Kushnir 2b36f8d10b Improve monitoring
- split metrics by service (API, portal, cdn, "common")
- fix domain name appended to path in metrics
- fix built-in http dashboard in Grafana
2025-06-08 13:27:37 +03:00
Taras Kushnir 2eb988d5e7 Rename metrics 2025-06-01 19:42:03 +03:00
Taras Kushnir 354f854162 Split health metrics into two 2025-06-01 19:28:54 +03:00
Taras Kushnir 4951055189 Initial commit 2025-05-31 10:56:00 +03:00