Skip to content

feat(sdk): deprecate the postOtlp and maybeGzip exports - #199

Merged
aikins01 merged 1 commit into
mainfrom
feat/sdk/deprecate-transport-exports
Nov 4, 2026
Merged

aikins01 merged 1 commit into
mainfrom
feat/sdk/deprecate-transport-exports

Conversation

@aikins01

@aikins01 aikins01 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

postOtlp and maybeGzip are public exports of @telemetry-dev/otel, but nothing outside the package uses them: postOtlp has no caller at all, and maybeGzip is only a step of the exporters. Both are now marked @deprecated, so editors flag them, and they can be dropped in a future breaking release. They keep working with the same signatures until then.

postOtlp points to createTraceExporter, createLogExporter and createMetricExporter instead. The exporters now call a private gzipLargeBody, and maybeGzip is an alias of it, so the package itself doesn't call a deprecated name and removing the export later is a one-line change. The built index.d.mts carries both @deprecated tags.

Refs #83

@aikins01 aikins01 self-assigned this Nov 4, 2026
@aikins01
aikins01 merged commit 7df6d6a into main Nov 4, 2026
10 checks passed
@aikins01
aikins01 deleted the feat/sdk/deprecate-transport-exports branch November 4, 2026 10:14
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