From 480f5e37e299c032fe06d1071872c599fdc1dcfc Mon Sep 17 00:00:00 2001 From: Are Almaas Date: Wed, 23 Oct 2024 14:53:43 +0200 Subject: [PATCH] fix(service): enable health-check for servicebus (#1338) ## Description ## Related Issue(s) - #292 ## Verification - [ ] **Your** code builds clean without any errors or warnings - [ ] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) ## Summary by CodeRabbit - **New Features** - Enhanced health check reporting to focus on dependency tracking. - Optimized caching strategies for improved performance and reliability. - Updated configuration for HTTP clients to improve error handling and service integration. - **Bug Fixes** - Adjusted health check options and caching parameters to ensure accurate functionality. --- .../InfrastructureExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Digdir.Domain.Dialogporten.Infrastructure/InfrastructureExtensions.cs b/src/Digdir.Domain.Dialogporten.Infrastructure/InfrastructureExtensions.cs index 0b0aaa955..18b6b9b64 100644 --- a/src/Digdir.Domain.Dialogporten.Infrastructure/InfrastructureExtensions.cs +++ b/src/Digdir.Domain.Dialogporten.Infrastructure/InfrastructureExtensions.cs @@ -192,7 +192,7 @@ internal static void AddPubSubCapabilities(InfrastructureBuilderContext builderC return; } - // x.ConfigureHealthCheckOptions(options => options.Tags.Add("self")); + x.ConfigureHealthCheckOptions(options => options.Tags.Add("dependencies")); x.AddConfigureEndpointsCallback((_, cfg) => { if (cfg is IServiceBusReceiveEndpointConfigurator sb)