(ctx context.Context, event *livekit.WebhookEvent, opts ...webhook.NotifyOption)
| 30 | ) |
| 31 | |
| 32 | func (t *telemetryService) NotifyEvent(ctx context.Context, event *livekit.WebhookEvent, opts ...webhook.NotifyOption) { |
| 33 | if t.notifier == nil { |
| 34 | return |
| 35 | } |
| 36 | |
| 37 | event.CreatedAt = time.Now().Unix() |
| 38 | event.Id = guid.New("EV_") |
| 39 | |
| 40 | if err := t.notifier.QueueNotify(ctx, event, opts...); err != nil { |
| 41 | logger.Warnw("failed to notify webhook", err, "event", event.Event) |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func (t *telemetryService) RoomStarted(ctx context.Context, room *livekit.Room) { |
| 46 | t.enqueue(func() { |
no outgoing calls
no test coverage detected