Skip to content

feat(playground): ✨ Show telemetry from live requests - #2

Merged
haskou merged 2 commits into
mainfrom
feat/real-playground
Jul 15, 2026
Merged

feat(playground): ✨ Show telemetry from live requests#2
haskou merged 2 commits into
mainfrom
feat/real-playground

Conversation

@haskou

@haskou haskou commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Changes

  • Replace the fixed delay and forced failure controls with a live GitHub repository request.
  • Present repository data, metrics, structured logs, and stack traces as readable UI elements.
  • Add explicit errors for invalid repository names and unsuccessful GitHub responses.
  • Import the Node resource and system clock adapters directly so browser builds do not traverse prom-client.

Motivation

The previous playground manufactured an 80 ms duration and accepted a boolean that forced the method to fail. Those controls demonstrated the output shape without proving that the library measured real work.

The new flow calls GitHub's public API through GitHubRepositoryFinder.find(). Visitors can inspect a public repository or enter a missing repository to capture a real HTTP failure.

Impact

The playground now reports network duration, calls, failures, logs, and stack traces produced by real executions. It keeps arguments out of telemetry and explains that CPU and RAM sampling require the Node.js adapter.

Direct adapter imports also remove Node module externalization warnings from the browser bundle.

Validation

  • yarn format:check
  • yarn lint
  • yarn test:coverage: 39 suites, 81 tests, and 100% coverage
  • yarn test:package
  • yarn pages:build

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@haskou
haskou marked this pull request as ready for review July 15, 2026 17:53
@haskou
haskou merged commit 5c8221d into main Jul 15, 2026
3 checks passed
@haskou
haskou deleted the feat/real-playground branch July 15, 2026 18:01
github-actions Bot added a commit that referenced this pull request Jul 15, 2026
@haskou
haskou restored the feat/real-playground branch July 15, 2026 22:36
@haskou
haskou deleted the feat/real-playground branch July 15, 2026 22:43
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