Migrate Sentry -> Epure in 10 min
说明与用途
将应用从 Sentry SaaS 迁移到自托管 Epure,仅需 10 分钟:仅更改 DSN,禁用非异常功能,并通过测试错误验证。
问题
Switch a production app from Sentry SaaS to self‑hosted Epure without rewriting SDK code.
结果
A single DSN swap and a test error confirm successful migration to Epure within ten minutes of wall clock time.
工作流
- Verify Epure host health via /health
- Create or copy project DSN from Epure dashboard
- Replace only the dsn field in Sentry.init
- Set tracesSampleRate, profilesSampleRate, replaysSessionSampleRate, replaysOnErrorSampleRate to 0
- Throw a test exception with Sentry.captureException
- Flush the SDK if running in a short‑lived worker
- Confirm HTTP 202 response and check Issues page for the new issue
证据
Keep the official Sentry SDK. Change only dsn to your Epure project.
Set traces, profiles, and replay sample rates to 0. Epure is exception-only.
Throw one test error, expect ingest HTTP 202, then an Issues row.
Copy the project DSN, replace only dsn, zero unused rates, throw once, confirm Issues.
- 记录日期: 2026-10-01T14:41:07.541Z