-
Notifications
You must be signed in to change notification settings - Fork 173
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
chore(server): remove sentry and only apply mixpanel middleware if enabled #2732
Conversation
# better software. Disabling this makes Speckle sad! | ||
############################################################ | ||
# SENTRY_DSN="-> FILL IN <-" | ||
# DISABLE_TRACING="" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not being used at the moment, but can be reinstated if we ever add tracing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL, I've been meaning to ask
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the calls to mixpanel()
are already protected by the if (client)
block within it - as in the client won't exist if mixpanel is not enabled, and so these calls (should) no-op in that case.
It looks like you may have made this (more) correct with the changes in app.ts
, though. Maybe worth at least including this behavior in the comment on mixpanel()
?
Thanks @cdriesler - I've reverted the change to the calls to mixpanel in automate. I see that it returns if the client doesn't exist:
And the client only exists if MixPanel is enabled:
|
Description & motivation
We are no longer using Sentry, we should purge it from our source code.
We should always respect the flag for enabling (or disabling) MixPanel.
Changes:
To-do before merge:
Screenshots:
Validation of changes:
Checklist:
References