File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 31
31
# Sentry setup
32
32
sentry_sdk .init (
33
33
dsn = app .config ['SENTRY_DSN' ],
34
- integrations = [FlaskIntegration (), SqlalchemyIntegration ()]
34
+ integrations = [FlaskIntegration (), SqlalchemyIntegration ()],
35
+ environment = app .config ['SENTRY_ENV' ],
35
36
)
36
37
37
38
ldap = CSHLDAP (app .config ['LDAP_BIND_DN' ],
Original file line number Diff line number Diff line change 25
25
LDAP_BIND_PW = env .get ("CONDITIONAL_LDAP_BIND_PW" , "" )
26
26
27
27
# Sentry config
28
- # Do not set the DSN for local development
28
+ # Not required for local development, but if you set it, make sure the
29
+ # SENTRY_ENV is 'local-development'
29
30
SENTRY_DSN = env .get ("CONDITIONAL_SENTRY_DSN" , "" )
30
31
SENTRY_CONFIG = {
31
32
'dsn' : env .get ("CONDITIONAL_SENTRY_LEGACY_DSN" , "" ),
32
33
'release' : VERSION ,
33
34
}
35
+ SENTRY_ENV = env .get ("CONDITIONAL_SENTRY_ENV" , "local-development" )
34
36
35
37
# OIDC Config
36
38
OIDC_ISSUER = env .get ("CONDITIONAL_OIDC_ISSUER" , "https://sso.csh.rit.edu/auth/realms/csh" )
You can’t perform that action at this time.
0 commit comments