Repository navigation
feat: add peer diagnostics and sanitized support reports - #569
Merged
Merged
Conversation
Expose typed audio measurements and explainable quality transitions with temporal confirmation and packet loss hysteresis. Observe existing PCM subscriptions and detect TURN on either selected candidate. Export allowlisted diagnostic snapshots with codec, platform and runtime information while excluding sensitive connection data. Document the API and demonstrate diagnosis events in the client example.
devopvoid
force-pushed
the
feat/client-peer-diagnostics
branch
from
November 8, 2026 00:14
98dbf2d to
19dee3c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Peer statistics expose measurements but leave applications to infer quality problems, debounce fluctuating readings and sanitize support exports themselves.
Add explainable peer diagnosis states and transition subscriptions for CPU-limited video, sustained inbound packet loss, TURN routing and received audio packets without PCM at subscribed sinks. Media problems and recovery require distinct measurements over a confirmation window; packet loss has separate entry and recovery thresholds. Cached reports do not advance evidence, and discontinuities or missing measurements discard stale evidence. TURN checks both selected candidates on every transport and remains informational.
Expose typed inbound and outbound audio statistics for jitter, concealment, audio levels and sample counters. Observe existing application audio sinks without attaching additional sinks, and distinguish absent observations from zero values.
Add a versioned JSON support export with cause explanations, confirmation policy, codec names, platform and Java runtime information. Its explicit allowlist excludes raw reports, connection identifiers, addresses, URLs, credentials, SDP, certificates and codec parameters. Update the client guide and runnable client example with the new API.