Update api call info method (#3515)

* register RequestRouted handler for updating method

Signed-off-by: shishir gowda <shishir@livekit.io>

* pass room to telemetry in DeleteRoom api to extract roomID

Signed-off-by: shishir gowda <shishir@livekit.io>

---------

Signed-off-by: shishir gowda <shishir@livekit.io>
This commit is contained in:
shishirng
2025-03-11 05:56:30 -04:00
committed by GitHub
parent b3779a9086
commit 2d9aa6dde4
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -133,7 +133,7 @@ func (s *RoomService) DeleteRoom(ctx context.Context, req *livekit.DeleteRoomReq
}
// ensure at least one node is available to handle the request
_, err = s.router.CreateRoom(ctx, &livekit.CreateRoomRequest{Name: req.Room})
room, err := s.router.CreateRoom(ctx, &livekit.CreateRoomRequest{Name: req.Room})
if err != nil {
return nil, err
}
@@ -145,7 +145,7 @@ func (s *RoomService) DeleteRoom(ctx context.Context, req *livekit.DeleteRoomReq
err = s.roomStore.DeleteRoom(ctx, livekit.RoomName(req.Room))
res := &livekit.DeleteRoomResponse{}
RecordResponse(ctx, res)
RecordResponse(ctx, room)
return res, err
}
+1
View File
@@ -231,6 +231,7 @@ func TwirpTelemetry(
ResponseSent: func(ctx context.Context) {
telemetryResponseSent(ctx, nodeID, getProjectID, telemetry)
},
RequestRouted: telemetryRequestRouted,
}
}