Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Setup Azure Alerts for 5XX Errors #202

Closed
wants to merge 11 commits into from
Closed

Setup Azure Alerts for 5XX Errors #202

wants to merge 11 commits into from

Conversation

pluckyswan
Copy link
Contributor

Description

Stuff

Issue

CDCgov/trusted-intermediary#1394

Checklist

Note: You may remove items that are not applicable

Copy link

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Misleading Endpoint
The endpoint '/test400' seems to be a test endpoint for generating 400 errors. This could be misleading as it does not reflect a real health check scenario.

Hardcoded Values
The hardcoded values for thresholds and frequencies in alert definitions might not be suitable for all environments or use cases.

@@ -77,6 +77,16 @@ func setupLogging() {
func setupHealthCheck() {
slog.Info("Bootstrapping health check")

http.HandleFunc("/test400", func(response http.ResponseWriter, request *http.Request) {

Choose a reason for hiding this comment

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

Consider renaming the endpoint from '/test400' to something more indicative of its purpose, like '/generate-400-error'. This will make the codebase more readable and maintainable. [important]

Copy link

PR Code Suggestions ✨

No code suggestions found for the PR.

Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants