Sentry SDK compatibility
Keep the Sentry SDK you already ship and point it at a Mendloop DSN.
Mendloop accepts Sentry envelopes and Sentry's older single-event store format. An app that already uses a Sentry SDK, in any language, can send to Mendloop by changing only the DSN. There is nothing new to install.
Point the SDK at Mendloop#
- Copy the project's DSN from Settings → Projects and ingest. It looks like
https://pk_live_xxx@ingest.getmendloop.com/42. - Replace the DSN in your Sentry SDK's
initwith it. Keepenvironmentandreleaseas they are. - Deploy, then check Issues: events appear within seconds.
import * as Sentry from "@sentry/browser";
Sentry.init({
dsn: "https://pk_live_xxx@ingest.getmendloop.com/42", // the Mendloop DSN
environment: "production",
release: "web@1.8.2",
});What Mendloop receives#
| Endpoint | For |
|---|---|
POST /api/{ingest_id}/envelope/ |
Sentry envelopes: the Mendloop SDK and any Sentry SDK |
POST /api/{ingest_id}/store/ |
Older Sentry SDKs (one JSON event) |
Both authenticate with the publishable key in the DSN, the same way Sentry does (for example the
sentry_key query parameter):
curl -X POST "https://ingest.getmendloop.com/api/42/store/?sentry_key=pk_live_…" \
-H 'Content-Type: application/json' \
-d '{"message": "hello from curl", "level": "error"}'Keep using Sentry too#
You don't have to choose. To keep Sentry as your error tracker and let Mendloop read from it, connect it as an integration instead: Mendloop reads issues and events from sentry.io or self-hosted Sentry and links them to the same issue as your SDK events. See Sentry integration.
Workflows can trigger on sentry.issue.created, which fires for both the Sentry webhook and events from a
Sentry SDK. See Workflows.