sentry.edge.config.ts
691 Bytes
-
feat(web): Sentry 网络面包屑 URL 归一化(去患者标识,保留路由形状) · 22b761ed
医疗系统 fetch/xhr 面包屑 URL 带 patientId/病历号等 PII,整段被服务端打 [Filtered] 又看不出接口。 新增 sentry-scrub.sanitizeUrl:段级 id(uuid/纯数字/长hex/病历号)→ :id、query 全去掉; client/server/edge 三处 Sentry.init 挂 beforeBreadcrumb。既能看调了哪个接口,又不落患者标识。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
luoqi committed