Is there any way to set different values for sentry attributes based on the current Spring profile?
The current attributes are located in the sentry.properties file...
Unfortunately naming it like the application.properties method (application-profilename.properties) does not work. Because the changes in a sentry-profilename.properties file aren't recognised.
So ideal would be:
sentry.properties (base information)
sentry-dev.properties (environment attribute = dev)
sentry-prod.properties (environment attribute = prod)
Ok, we defined the systems variable SENTRY_ENVIRONMENT
to dev
or prod
(based on the current deployment pipeline).
So this solved our issue and we got the wanted result in the sentry.io overview!