[webrtc-stats] Should we flatten the hierarchy? (#752)

henbos has just created a new issue for https://github.com/w3c/webrtc-stats:

== Should we flatten the hierarchy? ==
Having non-observable WebIDL dictionaries that don't map to objects makes the spec less readable.

One argument for having them is not to have to define the same metric in multiple places like outbound-rtp + remote-outbound-rtp and inbound-rtp + remote-inbound-rtp. But saying the shared metrics are the same is not entirely accurate, as local metrics usually come from a local counter and remote metrics usually come from an RTCP packet, so it does make sense to have separate definitions for them.

Can we flatten so that "what you see (in the spec) is what you get"? One dictionary per JS observed object.

Please view or discuss this issue at https://github.com/w3c/webrtc-stats/issues/752 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 3 April 2023 09:48:36 UTC