GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(devframe): add ctx.tracing for Node.js Tracing Channels by antfubot · Pull Request #428 · devframes/devframe

Conversation

@antfubot

@antfubot antfubot commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Why

Node.js publishes TracingChannel events (start, end, asyncStart, asyncEnd, error) around units of work, and so can any library or app. devframe had no way to list those channels or show what they trace. This is PR 1 of 3 from plan 009 (#426): the core primitive and its wire contract. PR 2 adds the inspect tab, PR 3 traces devframe's own RPC and shared-state writes.

What

  • ctx.tracing on every node context (scoped contexts included): register, list, record, stop, records, clear, onRecord. register() returns Node's TracingChannel, so a producer declares and traces with one call.
  • Known channels come from Node's built-ins (module.require, net.server.listen), register() calls, a new tracing.channels field on DevframeDefinition and on initHub / buildHub options, and ad-hoc record() names.
  • Subscription is on demand, so the app pays no tracing cost until something records. Lifecycle events sharing one context object fold into one DevframeTraceRecord. A ring buffer keeps 500 records per channel.
  • A serializer that never throws turns contexts holding sockets, requests, errors or cycles into JSON-shaped values.
  • Core owns the wire: shared state devframe:tracing:channels, streaming channel devframe:tracing (one stream per recording channel, id published as streamId), RPC actions devframe:tracing:record|stop|clear. Names live in DEVFRAME_EVENTS and the events reference.
  • DF0081 reports once where tracingChannel is missing; every method is a no-op there and register() returns a pass-through stand-in.
  • Docs: new guide page, terms, events, node-api and hub-api references, error page.

One deviation from the plan: each recording gets a fresh stream id instead of reusing the channel name, because streaming.start({ id }) with an id that is still retained silently replaces the record. The plan doc gets this note in #426.

Created with the help of an agent.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@antfubot
feat(devframe): add ctx.tracing for Node.js Tracing Channels
c7f1fcc
@vercel

vercel Bot commented Oct 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
devframe Ready Ready Preview Oct 5, 2026 2:53am UTC
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vercel
vercel Bot deployed to Preview October 5, 2026 02:53
View deployment

This branch was successfully deployed

1 active deployment
Preview — c7f1fcc0 Deployed Oct 5, 2026 by vercel[bot]
View deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@antfubot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.