Development#2
Merged
Merged
Conversation
…te caching, zap logger
…ning - Casbin: custom persist.Adapter backed by casbin_rule table, sync from RBAC - Cursor pagination: bidirectional cursor across all domains, replaces offset/limit - sqlc: user/todo CRUD migrated to sqlc, dynamic filters stay raw SQL - Error hardening: env-aware 500 with stacktrace, all errors persisted to error_logs - LIKE escaping: escape % and _ in todo search input - Fix: ErrorRecorder nil logger bug
…tion - .golangci.yml: add go 1.24 version override, replace deprecated govet.check-shadowing with shadow linter - .github/workflows/ci.yml: bump GO_VERSION from 1.22 to 1.25, add sqlc generate and swag init steps to lint/test/build jobs - Generated missing sqlc and swagger output files
Pre-built golangci-lint v1.64.8 was compiled with Go 1.24 and cannot type-check Go 1.25 code. Switch from the action's pre-built binary to 'go install', which compiles golangci-lint with the Go 1.25 toolchain already set up by actions/setup-go.
- Add internal/monitoring/ domain module with MetricsRecorder interface and Prometheus implementation (counters, histograms, gauges) - Add HTTP metrics middleware (RED: Rate, Errors, Duration) - Register /metrics endpoint and wire monitoring module via Fx - Add deployments/prometheus/ with scrape configs and alerting rules (HighErrorRate, HighLatency, ServiceDown, HighMemory, DBPoolExhaustion) - Add deployments/alertmanager/ with Email + Discord routing - Add deployments/grafana/ with provisioned datasources and 4 dashboards (Go App RED, PostgreSQL, Redis, System Overview) - Update docker-compose.yml: postgres_exporter, redis_exporter, alertmanager - Add docker-compose.dev.yml for local API+Postgres development - Consolidate config: remove .env.example, drop godotenv dependency, use configs/config.yaml as single source
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.