Telemetry test (#258)

* Add first test for telemetry

- First test for telemetry package that tests totalBytes field in downstream stats.
- Add fake_analytics_service
This commit is contained in:
Artur Shellunts
2021-12-14 14:13:21 +01:00
committed by GitHub
parent c7d728aded
commit 0d229388ec
3 changed files with 173 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ import (
"github.com/livekit/livekit-server/pkg/routing"
)
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . AnalyticsService
type AnalyticsService interface {
SendStats(ctx context.Context, stats []*livekit.AnalyticsStat)
SendEvent(ctx context.Context, events *livekit.AnalyticsEvent)