-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stats: improve JSON support, add missing structs #2513
Conversation
Amazing feature. We really need this |
This looks great @aalekseevx lets get it merged! I will review tonight. If you don’t hear from me please ping here and on https://pion.ly/slack Lots of stuff going on sometimes get pulled away :/ |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2513 +/- ##
==========================================
- Coverage 77.63% 77.22% -0.42%
==========================================
Files 87 87
Lines 9378 9674 +296
==========================================
+ Hits 7281 7471 +190
- Misses 1666 1745 +79
- Partials 431 458 +27
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
@Sean-Der, hi! I made some fixes for CI checks, do you have some time to complete the review now? |
Any updates? |
Fantastic work @aalekseevx! sorry I didn't get a chance to review sooner
Thank you so much for doing this work. It is a very important contribution. Sorry I did't respond sooner, personal life has just kept me busy. thank you! |
- Fix json marshalling of stats containing enums - Add UnmarshalStatsJSON helper - Add marshalling/unmarshalling tests - Add missing AudioSourceStats, VideoSourceStats AudioPlayoutStats defined in https://www.w3.org/TR/webrtc-stats - Deprecate ICECandidateStats' NetworkType, use plain string instead of enum which does not suite the definition: https://clck.ru/354H9r
@Sean-Der, thanks a lot for the review! I'm glad you liked this piece of work. I have updated the PR to meet the requirements. Is it possible to make a release as soon as it is merged? |
@Sean-Der, are there any blockers to merge left? Is golangci-lint timeout a problem? |
@aalekseevx nope you did a great job! I will merge and tag today. thank you for pinging me. This is super important contribution. Sorry I have been distracted with OBS dev. |
Merged and tagged with |
Hi there! We are delighted to have the opportunity to utilize pion's webrtc-stats implementation for unmarshalling JSON stats at our backend. I have put in some effort to make it feasible and would love to contribute it.
Description: