Skip to content

Conversation

@eecavanna
Copy link
Collaborator

@eecavanna eecavanna commented Dec 17, 2025

On this branch, I introduced a new Sentry-related configuration variable named sentry_environment (the corresponding environment variable is named NMDC_SENTRY_ENVIRONMENT).

The application owner can use it to specify the name of the environment on Sentry in which they want data from this deployment to be shown. The default value, and the example values in the comment, were copied from nmdc-runtime (where they were deliberately chosen a few weeks ago).

Today, on main, data sent by all deployments of this application are shown in the Sentry environment named "production"—that's because that's the default environment name and we weren't customizing it.

image

The changes being introduced via this branch will allow us to customize that (for future data, not past data). In our case, we'd add it to our helm chart "values YAML" files (as we've done for the Runtime already).

image

Finally, note that the changes on this branch only affect the backend. The frontend has its own Sentry configuration and there is a ticket here about refining it.

This comment was marked as resolved.

Copy link
Collaborator

@codytodonnell codytodonnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks and sounds good to me. I made one comment about the source of settings.sentry_environment

@eecavanna eecavanna merged commit 5075624 into main Dec 18, 2025
2 checks passed
@eecavanna eecavanna deleted the 1790-define-sentry-environment-value-based-upon-deployment-environment branch December 18, 2025 01:08
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.

Define Sentry environment value based upon deployment environment

3 participants