pub struct RtcMetricsRecorder {Show 20 fields
datagram_routes: PaddedCounterFamily<RtcDatagramRoutePath>,
datagram_drops: PaddedCounterFamily<RtcDatagramDropReason>,
datagram_fallback_scans: PaddedCounter,
datagram_scan_users: PaddedCounter,
nacks: PaddedCounterFamily<RtcNackDirection>,
rtx_packets_received_from_publisher: PaddedCounter,
rtx_payload_bytes_received_from_publisher: PaddedCounter,
rtcp_ingress_budget_drops: PaddedCounter,
output_budget_exhaustions: PaddedCounterFamily<RtcOutputBudgetLimit>,
output_budget_session_closes: PaddedCounter,
route_control: PaddedCounterFamily<RtcRouteControlOutcome>,
keyframe_requests: PaddedCounterFamily<RtcKeyframeRequestOutcome>,
relay_enqueues: PaddedCounterFamily<RtcRelayEnqueueResult>,
relay_mailbox_depth_samples: PaddedCounter,
relay_mailbox_depth_total: PaddedCounter,
relay_drain_batches: PaddedCounter,
relay_drained_packets: PaddedCounter,
relay_drain_cap_hits: PaddedCounter,
remote_control_drops: PaddedCounterFamily<RtcRemoteControlDropKind>,
remote_packet_gate_convergence: PaddedCounterFamily<RtcRemotePacketGateConvergence>,
}Expand description
Worker-local RTC packet-loop metric recorder.
Packet loops keep one recorder for their full worker lifetime. Datagram and
route-control updates touch only this worker’s padded atomics while
RuntimeMetrics aggregates all registered recorders during scrape capture.
Fields§
§datagram_routes: PaddedCounterFamily<RtcDatagramRoutePath>§datagram_drops: PaddedCounterFamily<RtcDatagramDropReason>§datagram_fallback_scans: PaddedCounter§datagram_scan_users: PaddedCounter§nacks: PaddedCounterFamily<RtcNackDirection>§rtx_packets_received_from_publisher: PaddedCounter§rtx_payload_bytes_received_from_publisher: PaddedCounter§rtcp_ingress_budget_drops: PaddedCounter§output_budget_exhaustions: PaddedCounterFamily<RtcOutputBudgetLimit>§output_budget_session_closes: PaddedCounter§route_control: PaddedCounterFamily<RtcRouteControlOutcome>§keyframe_requests: PaddedCounterFamily<RtcKeyframeRequestOutcome>§relay_enqueues: PaddedCounterFamily<RtcRelayEnqueueResult>§relay_mailbox_depth_samples: PaddedCounter§relay_mailbox_depth_total: PaddedCounter§relay_drain_batches: PaddedCounter§relay_drained_packets: PaddedCounter§relay_drain_cap_hits: PaddedCounter§remote_control_drops: PaddedCounterFamily<RtcRemoteControlDropKind>§remote_packet_gate_convergence: PaddedCounterFamily<RtcRemotePacketGateConvergence>Implementations§
Source§impl RtcMetricsRecorder
impl RtcMetricsRecorder
pub fn record_rtc_datagram_route(&self, path: RtcDatagramRoutePath)
pub fn record_rtc_datagram_drop(&self, reason: RtcDatagramDropReason)
pub fn record_rtc_datagram_fallback_scan(&self, examined_sessions: usize)
pub fn record_rtc_nacks(&self, direction: RtcNackDirection, count: u64)
pub fn record_rtc_rtx_received_from_publisher(&self, payload_bytes: usize)
pub fn record_rtc_rtcp_ingress_budget_drop(&self)
pub fn record_rtc_output_budget_exhaustion(&self, limit: RtcOutputBudgetLimit)
pub fn record_rtc_output_budget_session_close(&self)
pub fn record_rtc_route_control(&self, outcome: RtcRouteControlOutcome)
pub fn record_rtc_keyframe_request(&self, outcome: RtcKeyframeRequestOutcome)
pub fn record_rtc_relay_enqueue(&self, result: RtcRelayEnqueueResult)
pub fn record_rtc_relay_mailbox_depth(&self, depth: usize)
pub fn record_rtc_relay_drain_batch( &self, drained_packets: usize, cap_hit: bool, )
pub fn record_rtc_remote_control_drop(&self, kind: RtcRemoteControlDropKind)
pub fn record_rtc_remote_packet_gate_convergence( &self, outcome: RtcRemotePacketGateConvergence, )
Trait Implementations§
Source§impl Debug for RtcMetricsRecorder
impl Debug for RtcMetricsRecorder
Source§impl Default for RtcMetricsRecorder
impl Default for RtcMetricsRecorder
Source§fn default() -> RtcMetricsRecorder
fn default() -> RtcMetricsRecorder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RtcMetricsRecorder
impl RefUnwindSafe for RtcMetricsRecorder
impl Send for RtcMetricsRecorder
impl Sync for RtcMetricsRecorder
impl Unpin for RtcMetricsRecorder
impl UnsafeUnpin for RtcMetricsRecorder
impl UnwindSafe for RtcMetricsRecorder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more