Skip to content

Add websocket resource type#388

Draft
bdibon wants to merge 1 commit into
masterfrom
boris.dibon/add-websocket-resource-type-01
Draft

Add websocket resource type#388
bdibon wants to merge 1 commit into
masterfrom
boris.dibon/add-websocket-resource-type-01

Conversation

@bdibon

@bdibon bdibon commented May 12, 2026

Copy link
Copy Markdown
Contributor

Motivation

Define the websocket resource type and the nested resource.websocket object so the browser RUM SDK can emit a single RumResourceEvent per WebSocket lifetime.

This is part of a prototype WebSocket instrumentation on the browser SDK, the format of WebSocket resources is still experimental.

Changes

  • Add "websocket" to the resource.type enum in schemas/rum/resource-schema.json.
  • Add a new resource.websocket object under resource.properties, with fields covering connection identity, closure, aggregated message stats and the negotiated sub-protocol.

Test instructions

  • yarn validate — all RUM/session-replay/telemetry samples must validate against the updated schema (no sample uses the new fields yet, so this only confirms backward compatibility).

Checklist

  • Backward compatible: only adds a new enum value and a new optional object; no existing field is changed.
  • Sample validation passes (yarn validate).
  • Browser SDK consumer ready (in progress; this PR is the schema record).

@bdibon bdibon force-pushed the boris.dibon/add-websocket-resource-type-01 branch 2 times, most recently from 5fc8d13 to e239431 Compare May 19, 2026 14:45
@datadog-prod-us1-3

This comment has been minimized.

Add websocket setup_duration field

Co-authored-by: Cursor <cursoragent@cursor.com>

Update websocket fields
@bdibon bdibon force-pushed the boris.dibon/add-websocket-resource-type-01 branch from a597e6d to 94d4261 Compare June 8, 2026 14:33
@bdibon bdibon marked this pull request as ready for review June 8, 2026 14:58
@bdibon bdibon requested review from a team as code owners June 8, 2026 14:58
@bdibon bdibon marked this pull request as draft June 9, 2026 13:02
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