Skip to content

Add ExceptionMessage to HealthCheck and sanitize data#360

Merged
perkops merged 1 commit into
mainfrom
feature/improve-HealthCheck
Apr 15, 2026
Merged

Add ExceptionMessage to HealthCheck and sanitize data#360
perkops merged 1 commit into
mainfrom
feature/improve-HealthCheck

Conversation

@davidkallesen

Copy link
Copy Markdown
Collaborator

Summary

  • Add ExceptionMessage property to the HealthCheck record
  • Sanitize Exception objects in health check data to string messages
  • Extend test coverage for exception handling and data sanitization

Changes

✨ Features

  • Add ExceptionMessage property to HealthCheck record
  • Map HealthReportEntry.Exception?.Message to ExceptionMessage
  • Sanitize Exception objects in Data dictionary to their Message strings

✅ Tests

  • Add test for exception message mapping on unhealthy checks
  • Add test for Exception sanitization in Data dictionary
  • Add test for preserving non-Exception objects in Data
  • Add test for preserving ResourceHealthCheck in Data
  • Update existing deconstruct tests for new ExceptionMessage field
  • Add HealthCheckOptionsFactory tests

📝 Documentation

  • Update generated API docs for new ExceptionMessage property

@perkops perkops merged commit 5e22ab8 into main Apr 15, 2026
4 checks passed
@perkops perkops deleted the feature/improve-HealthCheck branch April 15, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants