Skip to content

chore(deps): replace deprecated OpenTelemetry trace SDK packages with @opentelemetry/sdk-trace - #9421

Merged
waleedlatif1 merged 1 commit into
stagingfrom
chore/otel-3
Oct 28, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
chore/otel-3

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Replace the deprecated @opentelemetry/sdk-trace-base and @opentelemetry/sdk-trace-node deps with @opentelemetry/sdk-trace 2.10.0 (same version as our installed core/resources; it is what sdk-trace-base 2.10.0 already wraps, so there is still a single copy)
  • BatchSpanProcessor/SimpleSpanProcessor take { exporter, ... }, and BasicTracerProvider is TracerProvider in the new package
  • Every batch option is set explicitly, so the OTEL_BSP_* env fallbacks the old wrapper read change nothing
  • Stays on @opentelemetry/api 1.9.x on purpose: OTel JS 3 requires api 1.10, while @trigger.dev/core pins api 1.9.1, and api 1.10 ignores a global registered by 1.9, so spans and logs inside Trigger runs would go to a no-op tracer. The 3.x jump waits for Trigger.dev support

Type of Change

  • Chore (dependency maintenance)

Testing

  • route.test.ts, timing.test.ts, headless.test.ts, start.test.ts (32 tests) pass locally
  • biome on changed files; type-check, check:audits, the full suite and replay-budget.integration.ts run in CI

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

… @opentelemetry/sdk-trace

@opentelemetry/sdk-trace-base and @opentelemetry/sdk-trace-node are deprecated
in favor of @opentelemetry/sdk-trace. Import the trace SDK from
@opentelemetry/sdk-trace 2.10.0, matching the installed core and resources
2.10.0 and staying on @opentelemetry/api 1.9.x so the global API stays shared
with the Trigger.dev runtime.

BatchSpanProcessor and SimpleSpanProcessor take an options object with the
exporter, and BasicTracerProvider is TracerProvider. Every batch option is set
explicitly, so the dropped OTEL_BSP_* environment fallbacks change nothing.
@waleedlatif1
waleedlatif1 requested a review from a team as a code owner October 28, 2026 21:24
@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Oct 28, 2026 9:33pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 8 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable defects were found.

Summary

Replaces the app’s direct dependencies on the deprecated trace packages with @opentelemetry/sdk-trace 2.10.0.

  • Sim’s tracing setup and tests use one trace SDK package.

No actionable issues were found. Tests were not run, and installed package sources were unavailable for checking exact exports.

Reviews (1) · Last reviewed commit: "chore(deps): replace deprecated OpenTele..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit 54bb500 into staging Oct 28, 2026
74 checks passed
@waleedlatif1
waleedlatif1 deleted the chore/otel-3 branch October 28, 2026 21:49

This branch was successfully deployed

1 active deployment
Preview — 87a30fd0 Deployed Oct 28, 2026 by vercel[bot]
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