- 添加 /health/live 存活探针别名(原 /health + /health/ready 保留) - 新增 metrics middleware:http_requests_total 计数器 + http_request_duration_seconds 直方图 - Prometheus exporter 独立端口 9090(可通过 ERP__SERVER__METRICS_PORT 覆盖) - 后台任务每 30s 采样 DB 连接池活跃/空闲连接数(pg_stat_activity) - 后台任务每 30s 采样 EventBus pending 事件积压数 - UUID 路径归一化避免高基数(/api/v1/users/:id/posts)
48 lines
1.1 KiB
TOML
48 lines
1.1 KiB
TOML
[package]
|
|
name = "erp-server"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[[bin]]
|
|
name = "erp-server"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
erp-core.workspace = true
|
|
tokio.workspace = true
|
|
axum.workspace = true
|
|
tower.workspace = true
|
|
tower-http.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
config.workspace = true
|
|
sea-orm.workspace = true
|
|
sqlx.workspace = true
|
|
redis.workspace = true
|
|
utoipa.workspace = true
|
|
serde_json.workspace = true
|
|
serde.workspace = true
|
|
erp-server-migration = { path = "migration" }
|
|
erp-auth.workspace = true
|
|
erp-config.workspace = true
|
|
erp-workflow.workspace = true
|
|
erp-message.workspace = true
|
|
erp-plugin.workspace = true
|
|
erp-health.workspace = true
|
|
erp-ai.workspace = true
|
|
erp-dialysis.workspace = true
|
|
erp-points.workspace = true
|
|
anyhow.workspace = true
|
|
uuid.workspace = true
|
|
chrono.workspace = true
|
|
moka = { version = "0.12", features = ["sync"] }
|
|
metrics.workspace = true
|
|
metrics-exporter-prometheus.workspace = true
|
|
|
|
[dev-dependencies]
|
|
erp-auth = { workspace = true }
|
|
erp-plugin = { workspace = true }
|
|
erp-workflow = { workspace = true }
|
|
erp-core = { workspace = true }
|
|
erp-dialysis = { workspace = true }
|