Prometheus counter for Signal/RTC messages (#139)

This commit is contained in:
Mathew Kamkar
2021-10-08 12:02:08 -07:00
committed by GitHub
parent 2c9ef2f6bb
commit b212fb9a9e
5 changed files with 27 additions and 8 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ func (s *RTCService) ServeHTTP(w http.ResponseWriter, r *http.Request) {
done := make(chan struct{})
// function exits when websocket terminates, it'll close the event reading off of response sink as well
defer func() {
logger.Infow("WS connection closed", "participant", pi.Identity, "connID", connId)
logger.Infow("server closing WS connection", "participant", pi.Identity, "connID", connId)
reqSink.Close()
close(done)
}()
+2 -1
View File
@@ -1,7 +1,8 @@
// Code generated by Wire. DO NOT EDIT.
//go:generate go run github.com/google/wire/cmd/wire
//+build !wireinject
//go:build !wireinject
// +build !wireinject
package service