Skip to content

Tracing dashboard#237

Merged
mpangrazzi merged 44 commits intomainfrom
tracing_dashboard
May 7, 2026
Merged

Tracing dashboard#237
mpangrazzi merged 44 commits intomainfrom
tracing_dashboard

Conversation

@mpangrazzi
Copy link
Copy Markdown
Contributor

@mpangrazzi mpangrazzi commented Apr 29, 2026

Adds the first built-in Hayhooks tracing dashboard for local debugging, with a React/Vite UI mounted at /dashboard and backed by an in-process live trace buffer.

Summary

  • Adds a live trace dashboard with entrypoint filtering, trace cards, nested span waterfall, selected-span tags, freshness/error states, dark mode, and slow-component highlighting.
  • Adds dashboard APIs for config, entrypoints, trace pagination, and clearing traces, with cursor-based polling, custom dashboard path support, bounded trace/span/tag retention, and safe payload metadata by default.
  • Extends Hayhooks tracing so pipeline, OpenAI, MCP, deploy/undeploy, streaming, and optional Haystack component spans can be mirrored locally while preserving OpenTelemetry export compatibility.
  • Wires dashboard packaging and CLI support via hayhooks run --with-tracing-dashboard, including runtime frontend builds, prebuilt dist overrides, docs, examples, and a demo trace-generation script.

Test plan

  • cd dashboard && npm run lint
  • cd dashboard && npm run test
  • cd dashboard && npm run build
  • hatch run test:types
  • pytest tests/test_dashboard_mount.py tests/test_it_dashboard.py tests/test_live_trace_buffer.py tests/test_tracing.py tests/test_cli.py
Screenshot 2026-05-06 at 11 15 29

@mpangrazzi mpangrazzi requested a review from a team April 29, 2026 12:57
@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 30, 2026

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
License policy violation: npm @fontsource/inter under OFL-1.1

License: OFL-1.1 - The applicable license policy does not permit this license (5) (npm metadata)

License: OFL-1.1 - The applicable license policy does not permit this license (5) (package/package.json)

License: OFL-1.1 - The applicable license policy does not permit this license (5) (package/LICENSE)

From: dashboard/package-lock.jsonnpm/@fontsource/inter@5.2.8

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@fontsource/inter@5.2.8. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
License policy violation: npm typescript

License: LicenseRef-W3C-Community-Final-Specification-Agreement - The applicable license policy does not permit this license (5) (package/ThirdPartyNoticeText.txt)

From: dashboard/package-lock.jsonnpm/typescript@6.0.3

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/typescript@6.0.3. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@mpangrazzi mpangrazzi marked this pull request as ready for review May 5, 2026 10:37
@mpangrazzi mpangrazzi requested a review from anakin87 May 7, 2026 08:08
Copy link
Copy Markdown
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

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

Nice!

Approving this small PR 😉

@mpangrazzi mpangrazzi merged commit 72f7b59 into main May 7, 2026
9 checks passed
@mpangrazzi mpangrazzi deleted the tracing_dashboard branch May 7, 2026 09:00
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