Use a Twirp server hook to send API call details to telemetry. (#3401)

* Use a Twirp server hook to send API call details to telemetry.

* mage generate and clean up

* Add project_id

* deps

* - Redact requests
- Do not store responses
- Extract top level fields room_name, room_id, participant_identity,
  participant_id, track_id as appropriate
- Store status as int

* deps
This commit is contained in:
Raja Subramanian
2025-02-07 16:16:41 +05:30
committed by GitHub
parent 7ebe528792
commit 99afbf587b
7 changed files with 425 additions and 70 deletions
+2 -1
View File
@@ -76,7 +76,8 @@ type TelemetryService interface {
IngressUpdated(ctx context.Context, info *livekit.IngressInfo)
IngressEnded(ctx context.Context, info *livekit.IngressInfo)
LocalRoomState(ctx context.Context, info *livekit.AnalyticsNodeRooms)
Report(ctx context.Context, report *livekit.ReportInfo)
Report(ctx context.Context, reportInfo *livekit.ReportInfo)
APICall(ctx context.Context, apiCallInfo *livekit.APICallInfo)
// helpers
AnalyticsService