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

feat(app): add sentry to git clone #963

Merged
merged 18 commits into from
Mar 22, 2022
Merged

feat(app): add sentry to git clone #963

merged 18 commits into from
Mar 22, 2022

Conversation

olevski
Copy link
Member

@olevski olevski commented Mar 14, 2022

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

@olevski olevski requested review from a team as code owners March 14, 2022 23:06
@@ -106,6 +106,22 @@ spec:
value: {{ .Values.sentry.sampleRate | quote }}
- name: SENTRY_RELEASE
value: {{ .Chart.Version | quote }}
- name: GIT_CLONE_SENTRY_ENABLED
Copy link
Member Author

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.

Copy link
Member Author

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.

@olevski olevski merged commit 7d73cad into master Mar 22, 2022
@olevski olevski deleted the add-sentry-to-git-clone branch March 22, 2022 08:02
@olevski olevski restored the add-sentry-to-git-clone branch November 30, 2022 21:43
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.

Add sentry to git-clone init container
2 participants