Skip to main content

json_telemetry_handler

Function json_telemetry_handler 

Source
pub async fn json_telemetry_handler(
    __arg0: ConnectInfo<SocketAddr>,
    __arg1: State<AetherisTelemetryService>,
    __arg2: Json<JsonTelemetryBatch>,
) -> impl IntoResponse
Expand description

Axum handler for POST /telemetry/json.

Accepts the JSON batch emitted by the WASM MetricsCollector::flush(). Rate-limited per IP using the same DashMap as the gRPC handler. Returns 429 on rate-limit exceeded, 400 on validation failure.