Skip to content

Commit 9d02258

Browse files
committed
Rename tag to ExcludeFromHealthActuator
1 parent 4ff460d commit 9d02258

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Common/src/Common/HealthChecks/HealthAggregator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private static async Task<IDictionary<string, SteeltoeHealthCheckResult>> Aggreg
6969
ICollection<HealthCheckRegistration> healthCheckRegistrations, IServiceProvider serviceProvider, CancellationToken cancellationToken)
7070
{
7171
HealthCheckRegistration[] activeHealthCheckRegistrations =
72-
healthCheckRegistrations.Where(registration => !registration.Tags.Contains("SkipFromHealthActuator")).ToArray();
72+
healthCheckRegistrations.Where(registration => !registration.Tags.Contains("ExcludeFromHealthActuator")).ToArray();
7373

7474
if (activeHealthCheckRegistrations.Length == 0)
7575
{

src/Management/test/Endpoint.Test/Actuators/Health/HealthAggregationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ public async Task Can_skip_AspNet_health_check()
525525
builder.Services.AddHealthActuator();
526526

527527
IHealthChecksBuilder checksBuilder = builder.Services.AddHealthChecks();
528-
checksBuilder.AddCheck<AspNetUnhealthyCheck>("aspnet-unhealthy-check", tags: ["SkipFromHealthActuator"]);
528+
checksBuilder.AddCheck<AspNetUnhealthyCheck>("aspnet-unhealthy-check", tags: ["ExcludeFromHealthActuator"]);
529529
checksBuilder.AddCheck<AspNetHealthyCheck>("aspnet-healthy-check");
530530

531531
await using WebApplication host = builder.Build();

0 commit comments

Comments
 (0)