pub async fn run_qos_server<T>(
bind_address: String,
provider: Arc<T>,
) -> Result<()>where
T: MetricsProvider + 'static,
Expand description
Starts a gRPC server that exposes QoS
metrics on the specified address.
This function binds to the provided address and serves the QosMetrics
gRPC service
using the supplied metrics provider as the data source. It runs indefinitely until
the server is shut down or encounters an error.
ยงErrors
Returns an error if the server fails to bind to the address, fails to start, or encounters an error during operation.