swarm-queue-client: add an authenticated HttpClient for OTLP exporters (otel-auth feature)
This commit is contained in:
parent
e8584e595b
commit
7913be5435
5 changed files with 147 additions and 0 deletions
|
|
@ -164,6 +164,14 @@ pub fn chain(error: &dyn std::error::Error) -> String {
|
|||
/// which is the disagreement this module exists to prevent.
|
||||
pub mod status;
|
||||
|
||||
/// An [`opentelemetry_http::HttpClient`] impl that authenticates every
|
||||
/// request with a fresh token from this crate's identity — see the
|
||||
/// module's own doc for the full rationale. Behind the `otel-auth`
|
||||
/// feature, same reasoning as `status`/`kv` above: only a caller wiring an
|
||||
/// OTLP exporter to this identity needs the extra dependencies it pulls in.
|
||||
#[cfg(feature = "otel-auth")]
|
||||
pub mod otel_http_client;
|
||||
|
||||
/// The subject the swarm controller publishes on when the hive-wide knowledge
|
||||
/// repository has changed. One writer, many readers — every hive subscribes.
|
||||
///
|
||||
|
|
|
|||
Loading…
Reference in a new issue