Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect dsn hostname #17

Merged
merged 5 commits into from
Oct 12, 2022
Merged

Detect dsn hostname #17

merged 5 commits into from
Oct 12, 2022

Conversation

cstavitsky
Copy link
Contributor

@cstavitsky cstavitsky commented Oct 4, 2022

Feature details

  • [priority] Detect hostname of DSN #12
  • Shows the DSN configuration
  • Calls out whether we are looking at SaaS or self-hosted Sentry
  • shrank Santo image a little to ensure people wouldn't miss scrolling down to see other sniffed tools 🥲

Screenshots

Screen Shot 2022-10-06 at 3 38 32 PM
Screen Shot 2022-10-06 at 3 36 57 PM
Screen Shot 2022-10-06 at 3 36 49 PM

src/ui/popup.tsx Outdated
)}
</li>
<li>
<p className="text-muted location">
<span className="text-muted location">
Sending events to <b>{this.state.dsn.includes(SENTRY_DOMAIN) ? "SaaS" : "Self-Hosted Sentry"}</b> via <a href={this.state.dsn}>{this.state.dsn}</a>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cstavitsky
It may still be going to sentry.io but via nginx reverse proxy / etc.

How about we just output the domain of the DSN and call it a day.

  • i.e. sending to sentry.io as project ID 123
  • i.e. sending to nginx.reddit.com/sentry as project ID 123

@cstavitsky

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the base domain, folks can then investigate further to see if its truly targeting on-premise or saas

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ndmanvar Ahhh didn't think of that, very good point...

i.e. sending to sentry.io as project ID 123
i.e. sending to nginx.reddit.com/sentry as project ID 123

do we need to provide any instructions to AEs in the plugin itself (i.e. link to admin projects page)? Are AEs aware of how to look up project IDs in Admin and determine whether those are SaaS or Self-hosted?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, don't worry about linking the AEs to the right info.

Some / most are not, but we can train them on it.
(also this is a public repo so we can't link them to our admin/etc)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ndmanvar
Copy link
Collaborator

ndmanvar commented Oct 6, 2022

once we get this merged. let's announce the updates and get folks to upgrade

@ndmanvar
Copy link
Collaborator

ndmanvar commented Oct 6, 2022

are you down to present this at next Sales/CS Bi-weekly?

@ndmanvar
Copy link
Collaborator

ndmanvar commented Oct 6, 2022

i can go over how to install/re-install, you go over the cool new stuff?

@ndmanvar
Copy link
Collaborator

ndmanvar commented Oct 7, 2022

neil to clone down and test out branch

@ndmanvar
Copy link
Collaborator

works perfectly when installed via bundle (e.g. npm/yarn) install/etc. when sending to sentry.io and other domain (see nbc-peacock, 3rd image)

image
image

image

@ndmanvar
Copy link
Collaborator

ndmanvar commented Oct 11, 2022

does not work when it is included via CDN

[ we can create another issue for that one. I don't think it's too important as most folks will bundle it ]

image

@ndmanvar
Copy link
Collaborator

#21

@ndmanvar
Copy link
Collaborator

@cstavitsky verified ✅
feel free to merge.

@cstavitsky cstavitsky merged commit a50ff24 into master Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants