aetelier_telemetry::meters¶
OpenTelemetry metric instrument definitions for the aetelier-sdk engine.
This module defines the four beta instruments that back the dashboard's metrics row:
| Instrument | OTel Kind | Dashboard Panel |
|---|---|---|
messages_received |
Counter<u64> |
MESSAGES/S, LOB/S, TRADES/S |
event_latency_ms |
Histogram<f64> |
LATENCY P99 |
worker_connection_state |
Gauge<u64> |
Sidebar state badges |
sink_queue_depth |
Gauge<u64> |
Sink status panel |
Usage¶
use aetelier_telemetry::meters::IngestionMeters;
let meters = IngestionMeters::new(&meter);
meters.record_event(&attrs);
meters.record_latency(12.5, &attrs);
Skeleton API reference
This page lists the public items in aetelier_telemetry::meters with a
one-line summary each. Signatures and source live in the SDK
repository.
Structs¶
| Item | Summary |
|---|---|
IngestionMeters |
Holds the four beta OTel instruments for the ingestion pipeline. |
Functions¶
| Item | Summary |
|---|---|
connection_state_code |
Encode a connection state name to a numeric gauge value. |
Constants¶
| Item | Summary |
|---|---|
EVENT_LATENCY_MS |
Histogram: end-to-end event latency in milliseconds (exchange timestamp → local receive time). |
LATENCY_BUCKETS_MS |
Histogram bucket boundaries tuned for WebSocket event latency. |
MESSAGES_RECEIVED |
Counter: total messages received (one increment per classified event). |
SINK_QUEUE_DEPTH |
Gauge: number of pending messages in a channel sink's queue. |
WORKER_CONNECTION_STATE |
Gauge: current connection state as a numeric code. |