kanidm/server/lib/src/status.rs
James Hodgkinson 60e5935faa
Moving daemon tracing to OpenTelemetry ()
* sally forth into the great otel unknown
* make the build env identification slightly more durable
* docs updates
* wasm recompile
2023-11-09 05:15:12 +00:00

28 lines
592 B
Rust

//! An actor that shows the servers current status and statistics. (TODO).
use uuid::Uuid;
use crate::prelude::*;
// TODO: this should *totally* be running the OTEL metrics collector
pub struct StatusRequestEvent {
pub eventid: Uuid,
}
pub struct StatusActor {}
impl StatusActor {
pub fn start() -> &'static Self {
let x = Box::new(StatusActor {});
let x_ptr = Box::into_raw(x);
unsafe { &(*x_ptr) }
}
pub async fn handle_request(&self, _event: StatusRequestEvent) -> bool {
admin_info!("status handler complete");
true
}
}