feat: 新增告警、成本、配额、微信模块及缓存服务
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- 新增告警模块 (alerts): 告警规则配置与触发 - 新增成本管理模块 (cost): 成本统计与分析 - 新增配额模块 (quota): 配额管理与限制 - 新增微信模块 (wechat): 微信相关功能接口 - 新增缓存服务 (cache): Redis 缓存封装 - 新增请求日志中间件 (request_logger) - 新增异常处理和链路追踪中间件 - 更新 dashboard 前端展示 - 更新 SDK stats_client 功能
This commit is contained in:
19
backend/app/middleware/__init__.py
Normal file
19
backend/app/middleware/__init__.py
Normal file
@@ -0,0 +1,19 @@
|
||||
"""
|
||||
中间件模块
|
||||
|
||||
提供:
|
||||
- TraceID 追踪
|
||||
- 统一异常处理
|
||||
- 请求日志记录
|
||||
"""
|
||||
from .trace import TraceMiddleware, get_trace_id, set_trace_id
|
||||
from .exception_handler import setup_exception_handlers
|
||||
from .request_logger import RequestLoggerMiddleware
|
||||
|
||||
__all__ = [
|
||||
"TraceMiddleware",
|
||||
"get_trace_id",
|
||||
"set_trace_id",
|
||||
"setup_exception_handlers",
|
||||
"RequestLoggerMiddleware"
|
||||
]
|
||||
Reference in New Issue
Block a user