Skip to content

chore: remove unused OpenTelemetry exporter deps (closes #19)#45

Open
alfep wants to merge 1 commit into
freecodexyz:mainfrom
alfep:chore/cleanup-unused-otel-deps
Open

chore: remove unused OpenTelemetry exporter deps (closes #19)#45
alfep wants to merge 1 commit into
freecodexyz:mainfrom
alfep:chore/cleanup-unused-otel-deps

Conversation

@alfep

@alfep alfep commented Jul 25, 2026

Copy link
Copy Markdown

Summary

Closes #19 — remove 12 unused OpenTelemetry exporter packages from package.json and bun.lock.

Verified unused

Ran grep for all forms of import (static, dynamic, type-only) across src/ and scripts/. Zero matches for:

  • @opentelemetry/exporter-logs-otlp-grpc / -http / -proto
  • @opentelemetry/exporter-metrics-otlp-grpc / -http / -proto
  • @opentelemetry/exporter-prometheus
  • @opentelemetry/exporter-trace-otlp-grpc / -http / -proto
  • @opentelemetry/resources
  • @opentelemetry/semantic-conventions

Kept (still in use)

  • @opentelemetry/api — public API surface
  • @opentelemetry/api-logs — log API
  • @opentelemetry/core — SDK plumbing
  • @opentelemetry/sdk-logs / -metrics / -trace-base — telemetry SDK

Changes

File Δ
package.json -12 lines
bun.lock -94 lines (12 direct + transitive)

Re-ran bun install to sync the lockfile; net removal of 12 packages.

Verification

Branch rebased on upstream/main (db7d216). Cherry-picked cleanly.

Caveat

There is a pre-existing build failure (unrelated to this change): bun run build:dev errors on Could not resolve: "lodash-es/<subpath>.js". Will fix in a separate PR.

Closes freecodexyz#19

Verified unused by grepping all imports/requires/dynamic-imports in
src/ and scripts/:
- No static `import` of any @opentelemetry/exporter-* package
- No static `import` of @opentelemetry/resources
- No static `import` of @opentelemetry/semantic-conventions
- No `import('@opentelemetry/...)` dynamic call anywhere
- API, api-logs, core, sdk-* kept (used for SDK plumbing)

Removed 12 packages from bun.lock via `bun install`. Net removal of
~13 transitive dependencies.

Note: pre-existing build issue with `lodash-es/<subpath>.js` resolves
is unrelated to this change and needs separate fix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 25, 2026 06:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Unused deps

2 participants