How to customize DSN/DNS for each project on sentry?

Hello, I need some help.

I have an instance running sentry and I have a couple of projects (one for each domain that I’m tracking errors).

domain 1: https://sentry.mydomain1.com
domain 2: https://sentry.mydomain2.com
domain 3 https://sentry.mydomain3.com

I would like to know if it is possible to configure Sentry to do the following:

Inside settings of any given project change the DSN from:

https://a24927233441334436a@sentry.mydomain1.com/<PROJECTNUMBER>
to:
https://a24927233441334436a@sentry.mydomain2.COM/<PROJECTNUMBER>
https://a24927233441334436a@sentry.mydomain3.COM/<PROJECTNUMBER>

To simplify what I need is to use another DSN for each domain I’m tracking.

It’s possible to do that?
Many thanks in advance!

edit: what I found that I need is when loading the sdk into my domain:

<script src='https://sentry.mydomain1.com/js-sdk-loader/a24927233441334436a.min.js' crossorigin="anonymous"></script>

the dsn object is:

{"dsn":"https://a24927233441334436a@sentry.mydomain1.com/1"});

I would like to change that to be the domain I have for each project :slight_smile:

You can just create CNAME records and use those domains if you want to. I just don’t understand why you need this :slight_smile:

1 Like