Last updated 26 November 2026. By Paul Badarau.
A fictional developer notices issues titled test test in a portfolio's Errors list, sent from a site they have never heard of. Someone copied the DSN out of the page source and is sending junk to it.
What the DSN allows, and what it does not:
- It sends errors, logs and traces to one Project. Anyone who can load your page can read it, and that is expected.
- It reads nothing. Every page and API read in Monitoring needs a signed-in session for the Workspace.
- It cannot upload source maps. That needs an upload token, and an upload token cannot send events.
Junk sent to a DSN fills the Errors list, and each stored event counts toward the Plan's 10,000 Monitoring events a month. The Project limits of 250 errors a minute and 5,000 a day bound it, but junk at that rate also uses the room your real errors need.
To replace a DSN, an Owner or Administrator does this in Monitoring setup:
- Choose the Project and select Create another key. Copy the new DSN at once, because it is shown only once.
- Deploy your site with the new DSN.
- Revoke the old key. Revoking stops its ingest immediately and cannot be undone. Pages that visitors still have open use the old DSN until they reload, so their errors are refused from that moment.
Junk that was already stored stays until it expires. Events are kept 7 days, and an issue's summary 30 days after it was last seen. Monitoring has no delete for single issues.
The upload token is the secret one. Keep it in your build's secret settings and out of the bundle. It is shown once, stored hashed, and revocable on the same Setup page. Someone holding it could replace the source map you stored for a release and file, and your stack traces would then point at the wrong lines. Monitoring also has no allowed-domains setting for a DSN, so a key in the open can be used from any site until you revoke it.
The product page for this is Monitoring.