Switch from Sentry to Tailcove by changing the DSN
Keep the Sentry SDKs already in your code and point them at Tailcove with a new DSN. Errors become issues with stack traces, releases and breadcrumbs.
Before you start
- A Tailcove source
- An app that already reports errors with a Sentry SDK
- Access to where the app's DSN is set (code, .env or your deploy settings)
If your app reports errors with a Sentry SDK, you don't have to rip it out to try Tailcove. Tailcove answers on the same endpoints the SDKs already call, so the only thing you change is the DSN. Your Sentry.init() call, your captureException calls, your release and environment settings all stay as they are.
On this page10 sections
- 1. Generate a DSN for the source
- 2. Swap the DSN in your app
- 3. Allow your site's origin (browser SDKs only)
- 4. Send a test error
- 5. Find it as an issue
- 6. Upload source maps for browser errors
- 7. Decide whether to keep the user id
- If nothing arrives
- What Tailcove doesn't take from Sentry
- 8. Bring over your issue states and alert rules
Errors then land next to your logs. They're grouped into issues with a stack trace, and you can search them like any other line. This guide moves one app over. Repeat it for the rest once you've seen it work.
1. Generate a DSN for the source#
Open the source you want the errors in and go to its Settings. Find the section called Error tracking (Sentry SDKs) and choose Generate key. The DSN appears with a copy button. It looks like this:
https://tce_…@ingest.tailcove.dev/4815162342
The part before the @ is the source's error key. The number after the host is the source's project number: Sentry SDKs only accept a number there, so each source gets its own. The SDK works out where to send events from those two pieces, so you paste the whole DSN and nothing else.
[!NOTE] The key in a DSN is public by design, because it ends up in browser code. It's separate from the source's ingest token and its browser key, and it can only send errors to this one source.
2. Swap the DSN in your app#
Replace the old Sentry DSN with the one you just copied. Keep release and environment if you set them: Tailcove reads both, and the issue page filters by them.
\Sentry\init([
'dsn' => 'https://tce_…@ingest.tailcove.dev/4815162342',
'release' => '[email protected]',
'environment' => 'production',
]);
# .env, with sentry/sentry-laravel installed
SENTRY_LARAVEL_DSN=https://tce_…@ingest.tailcove.dev/4815162342
import * as Sentry from '@sentry/browser';
Sentry.init({
dsn: 'https://tce_…@ingest.tailcove.dev/4815162342',
release: '[email protected]',
environment: 'production',
});
import sentry_sdk
sentry_sdk.init(
dsn="https://tce_…@ingest.tailcove.dev/4815162342",
release="[email protected]",
environment="production",
)
The Sentry SDKs for iOS (sentry-cocoa), Android (sentry-android), React Native and Flutter take the same DSN. Native frames aren't symbolicated yet, though: in a release build you'll see a function name only when the SDK resolved it on the device. For mobile logs, pair the SDK with the React Native or Flutter client, or OpenTelemetry for a native app.
[!TIP] If the DSN lives in an environment variable, switch staging first. Rolling back is a one-line change to the old value.
3. Allow your site's origin (browser SDKs only)#
A browser SDK sends an Origin header, and Tailcove only accepts it from the source's allowed origins. That list sits under Browser key on the same Settings page, and it's shared with the browser key.
Put one hostname per line:
example.com
*.example.com
localhost:5173
*.example.com covers every subdomain but not the bare domain, so list example.com on its own line if you need both. Server SDKs (PHP, Laravel, Python) and the mobile SDKs send no Origin and skip this step.
[!WARNING] Use a browser SDK at v6 or later. Older versions put the key in a header that a browser can't send without a preflight, and the preflight doesn't carry the key.
4. Send a test error#
Deploy or restart with the new DSN, then throw something on purpose:
\Sentry\captureException(new \RuntimeException('Tailcove DSN test'));
Sentry.captureException(new Error('Tailcove DSN test'));
sentry_sdk.capture_exception(RuntimeError("Tailcove DSN test"))
With Laravel, php artisan sentry:test from the Sentry package sends one for you.
Open the source's Live tail and the error shows up as an error line within a few seconds, with the exception class, the message and the stack frames. A plain captureMessage comes in as an ordinary log line instead.
5. Find it as an issue#
Open the source's Issues tab. The test error is there as an issue with a count, when it was first and last seen, and a stack trace. Your own frames (the ones the SDK marked in_app) are highlighted and library frames fold away.
The same error keeps landing on the same issue even when the numbers and ids in its message change, so a failing order #4812 and #4813 don't become two issues. From here you can resolve, ignore or assign it; see Issues for how a resolved issue reopens when the error comes back.
Alongside the trace, Tailcove keeps the event's release and environment, up to 30 tags, the last 30 breadcrumbs (without their free-form data), and the SDK name and version.
6. Upload source maps for browser errors#
A minified frame like app-3f9a1c.js:1:23456 doesn't tell you much. Upload your build's maps from CI with the tailcove CLI:
tailcove sourcemaps upload ./dist/assets --source web --url-prefix https://app.example.com/assets
Tailcove reads the maps when you open the issue, so frames show the original file, line and code. If the event carries a release, a map uploaded for that release is preferred. The full setup, including the curl version, is in Code links and source maps, and there's a walkthrough in this guide.
7. Decide whether to keep the user id#
By default Tailcove drops everything an SDK sends about the person and the request: URLs, headers, cookies, bodies, the user, local variables, source lines and extra data. That's on purpose.
If you count affected users, tick Keep the user id on events (nothing else about the user) in the same section and choose Save. The id is kept. The email, IP address and username still aren't.
If nothing arrives#
Check the SDK's debug output or the browser's Network tab for the status code.
| What you see | What it means and what to do |
|---|---|
401 |
The key is wrong or was rotated. Copy the DSN again from Error tracking (Sentry SDKs). |
403 from a server or mobile app |
The key belongs to another source. Use the DSN exactly as shown, without editing the id at the end. |
403 in the browser |
The page's origin isn't in the source's Allowed origins. Add the hostname under Browser key. |
A CORS error on the browser's OPTIONS preflight |
Usually an SDK older than v6, which puts the key in a header the preflight can't carry. Upgrade it. |
413 |
The envelope is over 1 MiB, before or after it's inflated. |
422 |
The envelope's first line isn't valid JSON. Something between the SDK and Tailcove may be rewriting the body. |
429 |
You're over the source's error budget (600 events a minute by default) or your plan's monthly quota. The response has Retry-After and X-Sentry-Rate-Limits, and the SDK pauses by itself. |
503 |
Our ingest buffer is busy. The SDK can send again later. |
200, but no issue |
Look at skipped and ignored in the response body. Skipped items couldn't be read; ignored ones are kinds Tailcove doesn't keep (see below). |
One envelope can hold up to 20 events and 50 items. Anything unreadable in it is skipped and counted, and the rest is still kept.
To shut errors off for a source, choose Revoke in the same section. Rotate key gives you a new DSN, and the old one stops working at once, so update your apps before you rotate.
What Tailcove doesn't take from Sentry#
Tailcove keeps errors and messages. The SDK can send more than that, and these are accepted and thrown away:
- Performance transactions
- Sessions and release health
- Attachments
- Profiles
If you rely on transactions today, OpenTelemetry traces are how Tailcove takes request timing. Request data, user details beyond an optional id, local variables and extra are dropped, as covered in step 7. Breadcrumbs keep their message but not their data.
Errors you already sent to Sentry stay there. Tailcove starts from the moment you change the DSN, so keep the old project around until its retention runs out if you might need its history.
8. Bring over your issue states and alert rules#
Swapping the DSN is the easy half. The hard half is everything you've already decided in Sentry: which errors are fixed, which are noise you ignored months ago, and which alerts wake someone up. Without that, the first day on Tailcove is a wall of issues you've already dealt with.
On the source's Issues tab, choose Import from Sentry. You'll need:
- your Sentry address:
https://sentry.io, or your own if you host Sentry - the organization and project slugs, from the project's address in Sentry (
acme.sentry.io/projects/checkout-api/isacmeandcheckout-api) - a personal auth token with
org:read,project:readandevent:read, made under User Settings → Personal Tokens in Sentry (organization tokens can't read issues)
Read the project runs in the background and saves nothing. It looks at up to 500 resolved and ignored issues, newest first. For each one it takes the latest event and works out which issue that error makes in Tailcove, so the match uses the same grouping as the events your SDK now sends. Then it reads your alert rules.
You get a list. Each issue shows the state it'll have here: "Ignored until 100 more events", "Resolved". If someone already resolved or ignored the matching issue in Tailcove, it says so and leaves it alone. Each alert rule shows what it becomes, or why it can't come over: "Tailcove has no alert for every new issue", "It measures count_unique(user); Tailcove log alerts count lines". Nothing is guessed at.
Untick anything you don't want and choose Bring it over. After that, an error you ignored in Sentry arrives through the new DSN and lands on an issue that's already ignored. A resolved one reopens only if it happens again after the import.
We use the token for the read and then drop it. It's never stored. Revoke it in Sentry anyway once you're done. The Sentry SDK docs have the full mapping table for states and rules.
Ready to try it on your own logs?
The Free plan includes a source, live tail, search and alerts. No credit card.