Skip to content

Add op signal counts#25411

Merged
zhangxin511 merged 5 commits intomainfrom
zhangxin/addsingalopInfo
Sep 10, 2025
Merged

Add op signal counts#25411
zhangxin511 merged 5 commits intomainfrom
zhangxin/addsingalopInfo

Conversation

@zhangxin511
Copy link
Copy Markdown
Contributor

Description

Add counters per session for submitted ops and signals, and collect these when cient leave. Aggregate to remote sessions and report when session considerd as inactivity

Breaking Changes

NA

@zhangxin511 zhangxin511 requested review from Copilot and znewton and removed request for Copilot September 8, 2025 15:15
@github-actions github-actions bot added base: main PRs targeted against main branch area: server Server related issues (routerlicious) labels Sep 8, 2025
Copilot AI review requested due to automatic review settings September 9, 2025 17:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds tracking of operation and signal counts per client session to improve telemetry data collection. The changes enable better monitoring of client activity by accumulating op and signal counts throughout a session and reporting them when sessions end.

Key changes:

  • Add sessionOpCount and sessionSignalCount fields to session telemetry properties
  • Track per-client operation and signal counts during active sessions
  • Report accumulated metrics when clients disconnect and sessions end

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
server/routerlicious/packages/services-core/src/collabSession.ts Add optional sessionOpCount and sessionSignalCount fields to telemetry properties interface
server/routerlicious/packages/services/src/sessionTracker.ts Update session tracking to accumulate client metrics and report them in session end telemetry
server/routerlicious/packages/services/src/redisSessionManager.ts Add Redis storage support for new session metric fields
server/routerlicious/packages/lambdas/src/nexus/index.ts Track per-client operation and signal counts during message processing
server/routerlicious/packages/lambdas/src/nexus/disconnect.ts Pass accumulated client metrics to session tracker when clients disconnect
server/routerlicious/packages/services-telemetry/src/resources.ts Add CommonProperties enum values for session-level metrics
Test files Add comprehensive test coverage for the new session metrics functionality

Copy link
Copy Markdown
Contributor

@znewton znewton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@zhangxin511 zhangxin511 enabled auto-merge (squash) September 10, 2025 17:11
@zhangxin511 zhangxin511 merged commit 0e4f1d7 into main Sep 10, 2025
29 checks passed
@zhangxin511 zhangxin511 deleted the zhangxin/addsingalopInfo branch September 10, 2025 21:16
anthony-murphy-agent pushed a commit to anthony-murphy-agent/FluidFramework that referenced this pull request Jan 14, 2026
## Description

Add counters per session for submitted ops and signals, and collect
these when cient leave. Aggregate to remote sessions and report when
session considerd as inactivity

## Breaking Changes

NA

---------

Co-authored-by: Xin Zhang <zhangxin@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: server Server related issues (routerlicious) base: main PRs targeted against main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants