Add TwirpRequestStatusReporter twirp server hook to count requests (#1309)
This commit is contained in:
@@ -83,8 +83,9 @@ func NewLivekitServer(conf *config.Config,
|
||||
}
|
||||
|
||||
twirpLoggingHook := TwirpLogger(logger.GetLogger())
|
||||
twirpRequestStatusHook := TwirpRequestStatusReporter()
|
||||
roomServer := livekit.NewRoomServiceServer(roomService, twirpLoggingHook)
|
||||
egressServer := livekit.NewEgressServer(egressService, twirpLoggingHook)
|
||||
egressServer := livekit.NewEgressServer(egressService, twirpLoggingHook, twirpRequestStatusHook)
|
||||
ingressServer := livekit.NewIngressServer(ingressService, twirpLoggingHook)
|
||||
|
||||
mux := http.NewServeMux()
|
||||
|
||||
Reference in New Issue
Block a user