David Zhao
981fb7cac7
Adding license notices ( #1913 )
...
* Adding license notices
* remove from config
2023-07-27 16:43:19 -07:00
Benjamin Pracht
552e3758d5
Add IngressUpdated event ( #1775 )
2023-06-16 10:58:49 -07:00
David Zhao
f71544e27a
Do not send ParticipantJoined webhook if connection was resumed ( #1795 )
...
* Do not send ParticipantJoined webhook if connection was resumed
* isResume -> isMigration
2023-06-15 15:39:04 -07:00
shishirng
2dd4e1365b
Send EgressUpdated event ( #1792 )
...
Signed-off-by: shishir gowda <shishir@livekit.io >
2023-06-14 18:56:07 -04:00
Benjamin Pracht
e7879a46fc
Add ingress telemetry support ( #1763 )
2023-06-02 17:38:19 -07:00
David Zhao
40ceddd18b
Integrate QueuedNotifier, fixes out-of-order delivery ( #1615 )
2023-04-15 01:20:23 -07:00
David Colburn
108b251045
egress updated webhook ( #1555 )
2023-03-27 16:34:44 -07:00
David Zhao
5ff72a99b9
Report publish & subscribe RTPStats as Telemetry events ( #1506 )
2023-03-10 10:28:54 -08:00
David Zhao
2851a8ac98
Improved robustness of subscription stack ( #1382 )
...
UpdateSubscription had a shortcoming where when it couldn't find the
participant, it ignored the request.
This PR further removes the reliance of current publisher state from
subscribers.
- SubscribeToTrack only takes in a trackID
- Introduced RoomTrackManager to maintain all published tracks to a room
- Added TrackUnpublished event to clearly indicate when a track has been removed
- SubscribeRequested event no longer include information about the publisher
2023-02-06 18:08:26 -08:00
cnderrauber
8b6dab780c
Add reconnect reason and signal rtt calculation ( #1381 )
...
* Add connect reason and signal rtt calculate
* Update protocol
* solve comment
2023-02-06 11:12:25 +08:00
David Zhao
b023c531c2
Fix incorrect unsubscribed track telemetry ( #1350 )
...
- only log unsubscribe on close if Track was actually bound
- update subscribed counters even if a failure had been logged before
2023-01-30 10:16:21 -08:00
David Zhao
cd6b8b80b9
feat: SubscriptionManager to consolidate subscription handling ( #1317 )
...
Added a new manager to handle all subscription needs. Implemented using reconciler pattern. The goals are:
improve subscription resilience by separating desired state and current state
reduce complexity of synchronous processing
better detect failures with the ability to trigger full reconnect
2023-01-24 23:06:16 -08:00
Dan McFaul
9e3ca1e989
adding rtc_init stat ( #1316 )
...
* adding rtc_initiated stat
* clean up signal and rtc init/connected
* update naming and break out stats update funcs
* update protocol dependency
2023-01-23 12:49:15 -07:00
David Zhao
732309a8c1
Added track success & muted events ( #1308 )
...
Related to livekit/protocol#273
This PR adds:
- ParticipantResumed - for when ICE restart or migration had occurred
- TrackPublishRequested - when we initiate a publication
- TrackSubscribeRequested - when we initiate a subscription
- TrackMuted - publisher muted track
- TrackUnmuted - publisher unmuted track
- TrackPublish/TrackSubcribe events will indicate when those actions have been successful, to differentiate.
2023-01-15 15:40:20 -08:00
Dan McFaul
4d6f0cd0f7
Stats collect v2 ( #1291 )
...
* initial commit
* add correct label
* clean up
* more cleanup on adding stats
* cleanup
* move things to pub and sub monitors, ensure stats are correctly updated
* fix merge conflict
* Fix panic on MacOS (#1296 )
* fixing last feedback
Co-authored-by: Raja Subramanian <raja.gobi@tutanota.com >
2023-01-11 14:49:50 -07:00
shishirng
dceb624b83
Send participant object in telemetry on Active event ( #1282 )
...
Signed-off-by: shishir gowda <shishir@livekit.io >
2023-01-04 08:55:49 -05:00
David Zhao
c1d7dbd4fc
Tweaks to prometheus participant counter ( #1240 )
...
* Tweaks to prometheus participant counter
Ensure that we don't miss adding a count in migration scenarios
* avoid nil ICEConfig
2022-12-19 14:30:14 -08:00
David Zhao
120335da00
Allow skipping of sending ParticipantJoined analytics event ( #1236 )
...
In certain scenarios such as migration, we do not want a duplicate event
to be sent when the participant is reconnecting. The Prometheus metric
should still be updated though.
2022-12-18 22:09:20 -08:00
David Zhao
33902a9f2a
Do not send ParticipantLeft webhook event unless connected successfully. ( #1234 )
...
Fixes #1130
2022-12-18 17:37:55 -08:00
shishirng
8dc5a899a9
Create stats worker for participant on Active if not exists ( #1059 )
...
on migration, participants don't send JOIN event, so create it in
PARTICIPANT_ACTIVE event
2022-09-29 17:26:43 -04:00
David Zhao
3da908302a
Do not warn when notifier isn't configured ( #1043 )
...
By default there are no webhook URLs to notify, so a notifier isn't created.
2022-09-26 13:30:27 -07:00
David Colburn
803046b882
Auto egress ( #1011 )
...
* auto egress
* fix room service test
* reuse StartTrackEgress
* add timestamp
* update prefixed filename explicitly
* update protocol
* clean up telemetry
* fix telemetry tests
* separate room internal storage
* auto participant egress
* remove custom template url
* fix internal key
* use map for stats workers
* remove sync.Map
* remove participant composite
2022-09-21 12:04:19 -07:00
Artur Shellunts
c7d728aded
Rename files to match interfaces inside files ( #256 )
...
* Rename analytics.go to analyticsservice.go
* Rename service to telemetryservice
* Rename events.go to telemetryserviceevents.go
2021-12-14 09:47:51 +01:00
shishirng
e7b50a79fe
Send room info in events by default ( #248 )
...
Signed-off-by: shishir gowda <shishir@livekit.io >
2021-12-10 14:11:13 -05:00
David Zhao
2d93ccd668
Updated protocol from protocol/proto -> protocol/livekit ( #242 )
...
* Updated protocol from protocol/proto -> protocol/livekit
* separate MediaTrack from PublishedTrack
2021-12-08 13:58:38 -08:00
David Colburn
c41384cd09
ActiveRecording ( #234 )
...
* ActiveRecording
* regenerate
* update to 0.10.3
* 1.17
2021-12-03 21:40:53 -08:00
David Colburn
6cf662cbe9
send roomID with all events
2021-11-29 16:41:55 -08:00
David Colburn
27a80aa801
fix stats worker
2021-11-29 16:24:29 -08:00
David Colburn
991c334d2d
telemetry interfaces ( #210 )
...
* telemetry interfaces
* move AddUptrack under stats
* regenerate
* a space
* consistency
* fix test
2021-11-24 17:58:04 -08:00
shishirng
5cdb1c4848
Send room name along in stat message ( #205 )
...
Signed-off-by: shishir gowda <shishir@livekit.io >
2021-11-23 15:51:16 -05:00
David Colburn
92838d75a8
Analytics events + stats ( #187 )
...
* events
* bump
* update incoming stats
* publisher stats
* outgoing rtcp
* stats
* remove unnecessary struct
* merge mediaTrack
* put comment back
2021-11-12 16:36:10 -06:00
David Colburn
01cf22f2c4
remove error message
2021-11-09 09:33:21 -08:00
David Colburn
bf46e998b2
Sfu/buffer stats for telemetry ( #173 )
...
* more buffer stats for analytics
* update names
* fix jitter and lost rate
* don't return on participantLeft if they never published
2021-11-09 02:06:07 -06:00
David Colburn
289ebd32ff
Telemetry refactor ( #172 )
...
* telemetry refactor
* fix imports
* update protocol
2021-11-08 20:00:34 -06:00