Add UMA metric for ICE candidate addition outcome
Bug: webrtc:9532
Change-Id: I58af94c03f5bbf25db2b558a8fe1ae53634fb99f
Reviewed-on: https://webrtc-review.googlesource.com/89063
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24032}
diff --git a/api/umametrics.h b/api/umametrics.h
index b999b64..d6c86dd 100644
--- a/api/umametrics.h
+++ b/api/umametrics.h
@@ -169,6 +169,19 @@
kSdpFormatReceivedMax
};
+// Metric for counting the outcome of adding an ICE candidate
+enum AddIceCandidateResult {
+ kAddIceCandidateSuccess,
+ kAddIceCandidateFailClosed,
+ kAddIceCandidateFailNoRemoteDescription,
+ kAddIceCandidateFailNullCandidate,
+ kAddIceCandidateFailNotValid,
+ kAddIceCandidateFailNotReady,
+ kAddIceCandidateFailInAddition,
+ kAddIceCandidateFailNotUsable,
+ kAddIceCandidateMax
+};
+
class MetricsObserverInterface : public rtc::RefCountInterface {
public:
// |type| is the type of the enum counter to be incremented. |counter|