DocsGet started
Point your Sentry SDK at Bugroo
Bugroo takes reports in the format Sentry SDKs send. Keep your SDK and your code, and change where the reports go.
- A Bugroo project and its DSN, from Project settings, Client keys.
- An auth token, if you upload source maps or create releases.
1Change the DSN
Replace the Sentry DSN in your start call with the Bugroo one. Every other option stays as it is.
Sentry.init({dsn: 'https://4f9e…@o1.ingest.sentry.io/7',dsn: 'https://b41e…6b21@ingest.bugroo.dev/42',tracesSampleRate: 0.2,})sentry_sdk.init(dsn="https://4f9e…@o1.ingest.sentry.io/7",dsn="https://b41e…6b21@ingest.bugroo.dev/42",traces_sample_rate=0.2,)sentry.Init(sentry.ClientOptions{Dsn: "https://4f9e…@o1.ingest.sentry.io/7",Dsn: "https://b41e…6b21@ingest.bugroo.dev/42",TracesSampleRate: 0.2,})The Sentry setup wizard does not work with Bugroo. Set the DSN by hand as above.
2Let your site send from the browser
A project with no allowed origins listed takes reports from every site, as Sentry does. List your own domains in the project settings to take reports from those only.
3Point sentry-cli at Bugroo
Every sentry-cli command takes --url. Check the connection first: info answers with your token's access.
$ npx sentry-cli --url <bugroo url> --auth-token <token> infoThese commands work against Bugroo:
| Command | What it does |
|---|---|
info | Checks the address and your token |
organizations list, projects list | Lists what your token can reach |
issues list, resolve, mute, unresolve | Reads and changes issues |
releases new, set-commits, finalize, deploys new | Creates releases, links commits and records deploys |
sourcemaps inject, upload | Adds debug ids and uploads source maps |
send-event | Sends a test event |
debug-files check | Checks a native debug file before upload |
Checked with sentry-cli 3.8.2. Releases also take list, info, deploys list, archive, restore and delete, and repos list works.
4Upload source maps
Add debug ids to your built files, then upload them.
$ npx sentry-cli --url <bugroo url> --auth-token <token> sourcemaps inject ./dist$ npx sentry-cli --url <bugroo url> --auth-token <token> sourcemaps upload --org <org> --project <project> ./distBugroo matches source maps by debug id only. Run inject before you upload and before you deploy the files, or stack traces stay minified.
5Check it worked
Send one event from the command line. It appears in your project as an issue.
$ npx sentry-cli --url <bugroo url> --auth-token <token> send-event -m "Hello from sentry-cli"