feat(mesh-phase5): Telemetry/TelemetryDial options + fail-closed validators

Claude-Session: https://claude.ai/code/session_01GASWkNEi68FSCtvr6rLoEW
This commit is contained in:
Joseph Doherty
2026-07-23 15:03:40 -04:00
parent a845a6d2fd
commit 53ae0100a2
3 changed files with 356 additions and 0 deletions
@@ -48,6 +48,14 @@ public static class ServiceCollectionExtensions
configuration, ConfigSourceOptions.SectionName);
services.Configure<ConfigServeOptions>(configuration.GetSection(ConfigServeOptions.SectionName));
// Per-cluster mesh Phase 5: which transport carries a node's live-telemetry stream (node
// serve side + central dial side). Validated at startup for the same reason ConfigSource is —
// a Grpc-mode node with no listen port or no key produces silence, not an error.
services.AddValidatedOptions<TelemetryOptions, TelemetryOptionsValidator>(
configuration, TelemetryOptions.SectionName);
services.AddValidatedOptions<TelemetryDialOptions, TelemetryDialOptionsValidator>(
configuration, TelemetryDialOptions.SectionName);
services.AddSingleton<IClusterRoleInfo, ClusterRoleInfo>();
return services;