Problem setting sentry environment variable #18118
Unanswered
Tecleck
asked this question in
Help Wanted!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All,
Perhaps someone can point me into the right direction. I have NetBox Community v4.1.3 running and i enabled sending error reports to an own sentry installation (24.10.0). That all works fine. Only thing i can't get to work is setting the environment in netbox so my production errors are separated from my test environment.
I thought it should work by setting an "environment" variable in netbox configuration.py , something like this:
SENTRY_TAGS = {
"environment": "test",
}
But whatever i do, the environment in sentry keeps being the default "production".
when i use a capital in "environment" like "Environment" the tag is set in sentry. But for sentry to pick it up as "real" environment" the tag should be with no Capitals. When do it with a capital you get the following in sentry:
environment: production
Environment: test
Anyone an idea?
Regards
Tec
Beta Was this translation helpful? Give feedback.
All reactions