Skip to content

Commit

Permalink
added back deleted telemetry event
Browse files Browse the repository at this point in the history
  • Loading branch information
James Hunt committed Jan 22, 2024
1 parent b1eb318 commit e3acc58
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/live-share-media/src/LiveMediaSessionCoordinator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,17 @@ export class LiveMediaSessionCoordinator extends EventEmitter {
sender: string,
local: boolean
): Promise<boolean> {
this._logger.sendTelemetryEvent(
TelemetryEvents.SessionCoordinator.RemoteConnectReceived,
null,
{
correlationId: LiveTelemetryLogger.formatCorrelationId(
evt.clientId,
evt.timestamp
),
}
);

// Immediately send a position update
try {
const state = this._getPlayerState();
Expand Down
1 change: 1 addition & 0 deletions packages/live-share-media/src/internals/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const TelemetryEvents = {
EndSuspensionAndWait: transmit(
"SessionCoordinator:EndSuspensionAndWait"
),
RemoteConnectReceived: "SessionCoordinator:RemoteConnectReceived",
RemoteSetTrackReceived: transmit(
"SessionCoordinator:RemoteSetTrackReceived"
),
Expand Down

0 comments on commit e3acc58

Please sign in to comment.