Open dvargaslantana opened 2 days ago
The pull request introduces modifications across multiple Program.cs
files in various DotNet projects to enhance health check functionalities for Kafka services. A new using directive for LantanaGroup.Link.Shared.Application.Health
is added, and a KafkaHealthCheckConfiguration
variable is instantiated in the RegisterServices
method. This variable is used to register Kafka health checks alongside existing database health checks. Additionally, a new class KafkaHealthCheckConfiguration
is introduced to facilitate these health checks, and the docker-compose.yml
file is updated to include a dedicated Kafka topic for health monitoring.
File Path | Change Summary |
---|---|
DotNet/Account/Program.cs | Added using directive; instantiated kafkaHealthOptions for Kafka health check registration. |
DotNet/Audit/Program.cs | Added using directive; updated RegisterServices and SetupMiddleware methods for Kafka checks. |
DotNet/Census/Program.cs | Added using directive; updated health checks to include Kafka. |
DotNet/DataAcquisition/Program.cs | Added using directive; modified health checks to include Kafka health check. |
DotNet/Normalization/Program.cs | Added using directive; updated health checks to include Kafka. |
DotNet/Notification/Program.cs | Added using directive; updated health check registration to include Kafka. |
DotNet/QueryDispatch/Program.cs | Added using directives; updated health checks and logging setup for Kafka. |
DotNet/Report/Program.cs | Added using directive; updated health checks to include Kafka. |
DotNet/Shared/Application/Health/KafkaHealthConfiguration.cs | Added KafkaHealthCheckConfiguration class with methods for health check options. |
DotNet/Shared/Shared.csproj | Added package reference for AspNetCore.HealthChecks.Kafka . |
DotNet/Submission/Program.cs | Added using directive; configured health checks and middleware for Kafka. |
DotNet/Tenant/Program.cs | Added using directive; updated health checks to include Kafka. |
docker-compose.yml | Added Kafka topic Service-Healthcheck and updated health check command for kafka_b service. |
KafkaConnection
instance as a singleton service, related to health checks and service registrations for Kafka.KafkaConnection
, aligning with the main PR's focus on enhancing health check capabilities related to Kafka.IKafkaProducerFactory
, relevant to the Kafka health check enhancements.KafkaConnection
, which connects to the main PR's changes regarding health checks.KafkaConnection
to a singleton instance, which is directly relevant to the main PR's focus on Kafka health checks.
Also added a missing health check endpoint to the Submission service.
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Documentation
These enhancements improve the application's reliability and monitoring of Kafka services, ensuring better operational oversight.