Skip to content

chore: DTOSS-12664 Filter health alerts from logging#1887

Open
hardik-desai-nhs wants to merge 33 commits intomainfrom
DTOSS-12664-Filter-health-alerts-from-logging
Open

chore: DTOSS-12664 Filter health alerts from logging#1887
hardik-desai-nhs wants to merge 33 commits intomainfrom
DTOSS-12664-Filter-health-alerts-from-logging

Conversation

@hardik-desai-nhs
Copy link
Copy Markdown
Contributor

@hardik-desai-nhs hardik-desai-nhs commented Apr 20, 2026

Description

This PR updates health-check telemetry filtering to reduce Application Insights noise while preserving error visibility.
This PR also Fixes Configuration Issues with Audit-Writer and Delete-Participant function apps
This PR also Standardizes the ServiceBus Connection String variable across azure, terraform, Docker, local.setting and various other places

Context

Health endpoint invocations were generating non-actionable Application Insights entries (request/trace/internal logs), creating noise.
The goal is to suppress routine health-check logs while still allowing exception/failure telemetry through for alerting and investigation.

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 20, 2026

Unit Test Results

✔️ Tests 1072 / 1072 - passed in 68.1s
📝 Coverage 47.16%
📏 5172 / 11255 lines covered 🌿 1253 / 2370 branches covered
🔍 click here for more details

✏️ updated for commit 0380edc

@hardik-desai-nhs
Copy link
Copy Markdown
Contributor Author

Before
image

After
image

@hardik-desai-nhs
Copy link
Copy Markdown
Contributor Author

AI Query
image

image

@hardik-desai-nhs
Copy link
Copy Markdown
Contributor Author

Find all the health logs group by app name from last 7 days

union isfuzzy=true
traces
| where timestamp > ago(7d)
| where * has "health"
| extend message_10 = substring(tostring(message), 0, 100)
| summarize count = count() by cloud_RoleName, message_10
| order by count desc

Find all the health logs in lst 5 min

union isfuzzy=true
traces
| where timestamp > ago(5min)
| where * has "health"
| order by timestamp desc
| take 100

Comment thread application/CohortManager/src/Functions/AuditServices/AuditWriter/Program.cs Outdated
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

@nc-shahidazim nc-shahidazim left a comment

Choose a reason for hiding this comment

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

Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants