geo/backend/app/middleware
chiguyong 3737a90471 feat: Sentry integration + rate limiter dual backend
- Initialize Sentry SDK in FastAPI (auto-disabled when DSN empty)
- Add sentry_sdk.set_measurement in metrics middleware
- Add sentry-sdk[fastapi] to requirements
- Refactor rate_limit.py: abstract RateLimitBackend + MemoryBackend + RedisBackend
- Redis backend uses sorted set sliding window with pipeline atomicity
- Memory backend adds asyncio cleanup task to prevent memory growth
- Auto-fallback to memory when Redis unavailable
- Add RATE_LIMIT_BACKEND config (default: memory)
2026-06-04 14:04:36 +08:00
..
__init__.py feat: 完整功能补全 - 用户管理/订阅付费/安全限流/管理后台/PDF报告/文档 2026-04-24 10:28:43 +08:00
agent_hooks.py feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
llm_metrics.py feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
logging_filter.py fix: 审计发现的问题修复 2026-05-25 23:33:25 +08:00
logging_middleware.py feat: 完整功能补全 - 用户管理/订阅付费/安全限流/管理后台/PDF报告/文档 2026-04-24 10:28:43 +08:00
metrics.py feat: Sentry integration + rate limiter dual backend 2026-06-04 14:04:36 +08:00
prometheus_metrics.py feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
rate_limit.py feat: Sentry integration + rate limiter dual backend 2026-06-04 14:04:36 +08:00
request_id.py feat: 完成系统真实化改造 + Mock清除 + 文档编写 2026-05-23 21:35:10 +08:00
subscription_enforcement.py feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00