Migrate Sentry -> Epure in 10 min
Описание и применение
Переключение приложения с SaaS Sentry на самоустанавливаемый 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