Skip to content

Add partial span export support#206

Draft
dvoytenko wants to merge 1 commit into
mainfrom
codex/partial-spans
Draft

Add partial span export support#206
dvoytenko wants to merge 1 commit into
mainfrom
codex/partial-spans

Conversation

@dvoytenko

@dvoytenko dvoytenko commented Jun 17, 2026

Copy link
Copy Markdown
Member

Summary

  • add an experimentalPartialSpans SDK option that exports open-span snapshots before final spans
  • add a PartialSpanProcessor and wire compatible SDK-created exporters through it when enabled
  • keep the Vercel runtime exporter on completed-span BatchSpanProcessor behavior
  • update SDK-owned OTLP serialization to omit endTimeUnixNano for unended span snapshots
  • add tests for partial snapshots, final snapshots, and short spans that finish before flush

Verification

  • pnpm type-check
  • pnpm unit-test
  • pnpm eslint

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
otel-site Error Error Open in v0 Jun 18, 2026 3:43pm

@vercel vercel Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Additional Suggestion:

The @vercel/otel build fails because the bundle-size guard in build.ts is exceeded after adding the partial-span export feature (node 302159 > 300000, edge 194576 > 191000).

Fix on Vercel

@agadzik agadzik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@dvoytenko dvoytenko requested a review from kakadiadarpan June 17, 2026 23:45
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.

3 participants