Watch
0
0
Fork
You've already forked hyperhive
0

move client-cert gauges behind an otel feature of swarm-secret-client, drop the crate

This commit is contained in:
atlas 2026-10-25 18:11:05 +01:00 • committed by mara
commit e592078868
19 changed files with 33 additions and 76 deletions

View file

@ -62,10 +62,8 @@ swarm-queue-client = { workspace = true, features = [
"agent-permissions",
"agent-archetype",
] }
# The `bao.client_cert.*` gauges on this exporter.
swarm-cert-metrics.workspace = true
swarm-matrix-client.workspace = true
swarm-secret-client.workspace = true
swarm-secret-client = { workspace = true, features = ["otel"] }
swarm-wire.workspace = true
tokio.workspace = true
tokio-stream.workspace = true

View file

@ -262,7 +262,7 @@ fn register_instruments(provider: &SdkMeterProvider, snapshot: Arc<Mutex<Vec<Con
/// only because `gather()` is async — which `readiness()` is not.
fn register_hive_instruments(meter: &opentelemetry::metrics::Meter) {
// The hive's own store certificate (`client.pem`, `BAO_CLIENT_CERT`).
swarm_cert_metrics::register(meter, "client");
swarm_secret_client::cert_metrics::register(meter, "client");
// Seconds since the exporter started. A hive that is up reports this every
// interval whether or not it hosts a single agent, which is what makes