Skip to content

Add workflow trace timing breakdown#2677

Draft
karthikscale3 wants to merge 10 commits into
mainfrom
kk/workflow-trace-timing-breakdown
Draft

Add workflow trace timing breakdown#2677
karthikscale3 wants to merge 10 commits into
mainfrom
kk/workflow-trace-timing-breakdown

Conversation

@karthikscale3

@karthikscale3 karthikscale3 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add optional workflow span timing metadata for trace viewers
  • render cold start, module init, and workflow overhead in run/step detail panels
  • expose selected span IDs so front can lazily hydrate timing per selected span
  • add tests for timing derivation

Why

Front can combine workflow observability, request logs, and outbound fetch metrics to explain queued time before a workflow run or step starts. web-shared should render that breakdown without owning front-specific data fetching.

Tarballs

Checks

  • node_modules/.bin/tsc --noEmit -p packages/web-shared/tsconfig.json
  • ../../node_modules/.bin/vitest run test/workflow-span-timing.test.ts from packages/web-shared
  • node_modules/.bin/biome check --write ... on touched files (completed with existing warnings; no fixes applied)

CI note

Tarballs deployment and Tarballs Preview Smoke Checks passed. Ubuntu unit tests currently fail in @workflow/ai (workflow-chat-transport.test.ts), outside this PR’s touched web-shared files.

@changeset-bot

changeset-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b21cbb0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@workflow/web-shared Patch
@workflow/web Patch
@workflow/cli Patch
@workflow/nitro Patch
workflow Patch
@workflow/world-testing Patch
@workflow/nuxt Patch
@workflow/core Patch
@workflow/builders Patch
@workflow/next Patch
@workflow/vitest Patch
@workflow/astro Patch
@workflow/nest Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Jun 29, 2026 8:35pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Jun 29, 2026 8:35pm
example-workflow Ready Ready Preview, Comment Jun 29, 2026 8:35pm
workbench-astro-workflow Ready Ready Preview, Comment Jun 29, 2026 8:35pm
workbench-express-workflow Ready Ready Preview, Comment Jun 29, 2026 8:35pm
workbench-fastify-workflow Ready Ready Preview, Comment Jun 29, 2026 8:35pm
workbench-hono-workflow Ready Ready Preview, Comment Jun 29, 2026 8:35pm
workbench-nitro-workflow Building Building Preview, Comment Jun 29, 2026 8:35pm
workbench-nuxt-workflow Ready Ready Preview, Comment Jun 29, 2026 8:35pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Jun 29, 2026 8:35pm
workbench-tanstack-start-workflow Ready Ready Preview, Comment Jun 29, 2026 8:35pm
workbench-vite-workflow Ready Ready Preview, Comment Jun 29, 2026 8:35pm
workflow-docs Ready Ready Preview, Comment, Open in v0 Jun 29, 2026 8:35pm
workflow-swc-playground Ready Ready Preview, Comment Jun 29, 2026 8:35pm
workflow-tarballs Ready Ready Preview, Comment Jun 29, 2026 8:35pm
workflow-web Ready Ready Preview, Comment Jun 29, 2026 8:35pm

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