Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce an agency environment variable #312

Closed
thekaveman opened this issue Sep 7, 2023 · 1 comment · Fixed by #253
Closed

Introduce an agency environment variable #312

thekaveman opened this issue Sep 7, 2023 · 1 comment · Fixed by #253
Assignees

Comments

@thekaveman
Copy link
Member

So that we know in logs and events if we ever combine those from multiple agency sources.

@thekaveman thekaveman added this to the SBMTD Mobility Pass milestone Sep 27, 2023
@thekaveman thekaveman self-assigned this Oct 11, 2023
@thekaveman thekaveman moved this from Todo to In Progress in Digital Services Oct 11, 2023
@thekaveman
Copy link
Member Author

thekaveman commented Oct 11, 2023

Plan is to handle this with #253, because we'll want to set a value for all sentry events to indicate which agency the event came from.

Idea is to add an agency_name property that reads from environment, in the usual place in settings.Configuration class, which can be customized by implementations in the settings.py file.

agency_name values will correspond with agency.long_name from Benefits, which is also used in analytics/errors.

Attach a custom tag to Sentry events in Python.

@thekaveman thekaveman moved this from In Progress to In Review in Digital Services Oct 27, 2023
@github-project-automation github-project-automation bot moved this from In Review to Done in Digital Services Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant