Skip to content

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

Open
alfep wants to merge 4 commits into
mainfrom
chore/remove-unused-otel-deps
Open

chore: remove unused OpenTelemetry exporter deps (closes #19)#1
alfep wants to merge 4 commits into
mainfrom
chore/remove-unused-otel-deps

Conversation

@alfep

@alfep alfep commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

Closes freecodexyz#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.

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.

alsyah and others added 3 commits July 24, 2026 13:48
The --bytecode flag in bun build --compile produces structurally corrupted
Mach-O binary headers on Apple Silicon (M4), causing macOS Gatekeeper to
SIGKILL the process. Removing the flag restores standard binary format
compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Prevents drive-by comments on resolved threads by locking PRs
on close with lock_reason='resolved'. Uses minimal permissions
(issues: write, pull-requests: write) and SHA-pinned actions
to mitigate pwn-request attacks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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 24, 2026 09:00

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.

.commandcode/ holds CommandCode tool stubs (taste.md etc.)
growtopia-app/ is a separate side-project root

Both are local-only and not part of the build artifact.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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