rakka-dashboard 0.2.1

Live web UI over a running rakka system — REST + WebSocket + embedded React SPA, Prometheus / OTLP exporters.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Actor tree + flat listing.

use axum::extract::State;
use axum::Json;

use rakka_telemetry::dto::ActorSnapshot;

use crate::AppState;

pub async fn get_tree(State(state): State<AppState>) -> Json<ActorSnapshot> {
    Json(state.telemetry.actors.snapshot())
}

pub async fn list_actors(State(state): State<AppState>) -> Json<ActorSnapshot> {
    Json(state.telemetry.actors.snapshot())
}