-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat(app): add sentry to git clone #963
Conversation
Co-authored-by: Ralf Grubenmann <ralf.grubenmann@protonmail.com>
Co-authored-by: Ralf Grubenmann <ralf.grubenmann@gmail.com>
@@ -106,6 +106,22 @@ spec: | |||
value: {{ .Values.sentry.sampleRate | quote }} | |||
- name: SENTRY_RELEASE | |||
value: {{ .Chart.Version | quote }} | |||
- name: GIT_CLONE_SENTRY_ENABLED |
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.
@Panaetius we do not need double underscores here. This is just injected into the notebook service container.
The notebook service then uses these environment variables and patches them into the session. Once things are patched into the sessions they need to have the double underscores so that they can be parsed by dataconf.
Here I did not add any double underscores because we do not use dataconf at this level yet.
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.
The failing integration tests were a fluke. I reran them locally too without a problem.
This should be reviewed and merged after #956 is merged.
This adds the possibility to add separate sentry trackers for the init container in every sessions that clones and for the sidecar rpc server container which (among other things) creates the autosave.
Because these are completely different environments than the renku-notebooks flask server I added separate projects for them. And the values file enables people to add separate sentry dsn for each container. I think this makes sense rather than seeing everything lumped in one. This way the errors from the flask server and any number of sessions always have to be combined in the same sentry project. This way we have flexibility to make them the same (by providing the same dsn in all places) or not.
In addition it is possible that some people may not want to add sentry in user sessions but may want to do so in the notebook server.
I caused the autosave creation and cloning to fail artificially and the errors show up:
https://sentry.dev.renku.ch/organizations/sentry/issues/415/?project=10
https://sentry.dev.renku.ch/organizations/sentry/issues/414/?project=11
closes #376