swarm-otel/swarm-controller: authenticate + route the swarm-tier OTLP producer through the gateway

This commit is contained in:
damocles 2026-08-27 00:24:19 +02:00 committed by mara
commit 350b4e9fb7
3 changed files with 170 additions and 81 deletions

View file

@ -452,8 +452,9 @@ fn build_http_client(cfg: &QueueConfig) -> Result<reqwest::Client, Error> {
/// per call, same as this crate did before the reconnect-storm fix added the
/// cache.
///
/// `audience` is passed straight to [`token_request`] — see its doc for why
/// it is optional and when a caller needs it. `None` reproduces this
/// `audience` is passed straight to the private `token_request` helper —
/// see its doc for why it is optional and when a caller needs it. `None`
/// reproduces this
/// function's behaviour before the parameter existed, so every caller from
/// before that added it (the queue connect path, `auth.rs`'s bridge client)
/// is unaffected.