Skip to content

⚗️ [RUM-17561] add process event type to RUM schema#415

Draft
bcaudan wants to merge 7 commits into
masterfrom
bcaudan/process-schema
Draft

⚗️ [RUM-17561] add process event type to RUM schema#415
bcaudan wants to merge 7 commits into
masterfrom
bcaudan/process-schema

Conversation

@bcaudan

@bcaudan bcaudan commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Motivation

Introduces a first-class process event type to support Electron child-process monitoring. Allows the SDK to report process lifecycle data (start time, duration, exit reason) and links all existing RUM events back to their owning process via optional enrichment on the common schema.

Changes

  • New process-schema.json event type extending _common-schema.json. Required fields: type, process.id (UUID), process.role (enum: main/renderer/utility, Electron-only for now), process.pid, _dd.document_version. Optional: process.ppid, process.name, process.duration (ns), process.exit_reason.
  • process-schema.json registered in the RumEvent oneOf union in rum-events-schema.json.
  • Optional process.id, process.role, and process.name enrichment added to _common-schema.json so all existing event types (Error, Action, Resource, etc.) can carry a back-reference to their owning process.
  • Optional view.is_fake boolean added to _common-schema.json so all event types associated with a fake view can carry the flag for backend and frontend filtering. Fake views are synthetically created by the SDK to carry process events during the transition phase where process events require a view.id.

Comment on lines +54 to +59
"duration": {
"type": "integer",
"description": "Process lifetime in nanoseconds",
"minimum": 0,
"readOnly": true
},

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

💭 thought: ‏Used date / process.duration instead of process.start / process.end to be consistent with other events.

Comment thread schemas/rum/_view-properties-schema.json Outdated
Comment thread schemas/rum/_common-schema.json
bcaudan added 3 commits July 21, 2026 15:51
Relocates the synthetic-view flag from _dd.is_fake (view/view_update only)
to view.is_fake on _common-schema.json, so all event types associated with
a fake view (error, action, resource, etc.) can carry the flag for backend
filtering.
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.

2 participants