Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

Telemetry gRPC service implementation + JSON HTTP handler.

Receives structured log events from WASM clients over gRPC-web (TCP/HTTP) and forwards them to the tracing pipeline (Loki via Promtail).

Also exposes a plain JSON endpoint (POST /telemetry/json) consumed by the WASM metrics.rs flush path (no gRPC framing needed on the client side).

This is an out-of-band diagnostic channel, intentionally independent of WebTransport, so it remains reachable during QUIC failures.

§M10105 — Prometheus Metrics (static labels only, anti-cardinality rule)

All metrics use client_type = "wasm_playground" as the only label. No UUIDs or client IDs appear in Prometheus label sets to prevent time-series cardinality explosion during continuous Playground testing.

Structs§

AetherisTelemetryService
JsonTelemetryBatch
JsonTelemetryEvent
JSON wire format matching TelemetryEventJson in WASM metrics.rs.

Functions§

json_telemetry_handler
Axum handler for POST /telemetry/json.