Closed gastaldi closed 6 years ago
This probably needs a bit more information? Because the link to the config is pretty generic, it doesn't really explain what the URL should be that has to be configured?
The DSN is available inside the Sentry UI, under Project Settings -> Client Keys (DSN). See an example here: https://errortracking.prod-preview.openshift.io/openshift_io/fabric8-launcher-backend/settings/keys/
It has a structure similar to:
https://user:pass@errortracking.prod-preview.openshift.io/22?environment=production&stacktrace.app.packages=
Ok, so how would we get that value into the template?
Probably as a Configmap value, as it is done in https://github.com/fabric8-launcher/launcher-backend/blob/e818c0b73dab3fee379cac99868fddff9acb118e/openshift/template.yaml#L145
Ok, so you're saying that people would install the template and then manually update the SENTRY_DNS value with the correct value?
But wait, if it's already in the backend template why do you need it in the unified template? It should already be there (unless you forgot to run scripts/create-unified-template.sh
after making that change to the backend template ;) )
Ok, so this is just running that script. Let me do that now.
Yeah, or configure Sentry first and then add the DSN there, maybe it should be a parameter in the template too
I was unaware of that script. Thanks
ok, I see you made changes that are not compatible with the unified template, I first need to fix that
This seems to be already fixed. After recent changes, the configmap key are now
launcher.backend.sentry.dsn
and launcher.frontend.sentry.dsn
The launcher-backend has an integration on Sentry.io. To enable it, it requires the SENTRY_DSN var to be defined.
Reference: https://docs.sentry.io/clients/java/config/