Skip to content

feat(telemetry): record implicit room creation outcomes - #5264

Open
stevensukma wants to merge 1 commit into
livekit:masterfrom
stevensukma:implicit-room-creation-metrics
Open

stevensukma wants to merge 1 commit into
livekit:masterfrom
stevensukma:implicit-room-creation-metrics

Conversation

@stevensukma

Copy link
Copy Markdown

Why

A join that creates a room can fail before the participant join counter runs. Operators need a separate signal for the outcome of creating the room record.

What changed

  • Add type="implicit_room_create" to the existing livekit_node_service_operation counter. Record success after storing a new room and record failure if applying its preset or storing it fails.
  • Log classified failures with the room and failing stage. Use fixed error labels for the counter.

Scope

The room store's locked lookup must identify a new room before an attempt contributes to the counter. Explicit creation, rooms that already exist, failures before classification, and later RTC setup are outside this metric.

Verification

  • The regression test fails against upstream source and passes with the patch. It checks successful creation, failure reasons, explicit creation, room reuse, and a join through StartSession.
  • go test ./pkg/service -docker=false -count=1 and go test ./pkg/telemetry/prometheus -count=1 passed.
  • Docker-backed integration tests could not start their Redis containers in this environment. The Docker socket returned EOF on container start.

Count outcomes once the room store confirms that a join needs a
new room. Label classified failures by stage and log the room
name for investigation.
@stevensukma
stevensukma requested a review from a team as a code owner November 23, 2026 12:28

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant