v0.5: WHIP Prometheus metrics — replace no-op recordRequest placeholder #22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
WHIPHandler.recordRequestis currently a no-op placeholder (issue noted in commit comment). Wire in real Prometheus counters and histograms at parity with WHEP.Acceptance criteria
whipRequestsCounterVec andwhipRequestDurationHistogramVec towebrtcMetricsmet *webrtcMetricsfield toWHIPHandler; exposeWHIPHandler.SetMetrics(met *webrtcMetrics)fmt.Sprintfno-op inrecordRequestwith real counter/histogram observationsWHIPHandler.trackICEgoroutine for ingest ICE establishment timing (reuses existingiceEstablishmentandiceFailureslabels)WHIPHandler.Stats()returning active publisher counts (for snapshot collector)"fmt"import fromwhip_handler.gowhip_handler_test.go: verifySetMetricsdoesn't panic, Stats returns 0 on empty handler