Skip to content

docs(exporter-trace-otlp-grpc): import CompressionAlgorithm from otlp-exporter-base#6777

Merged
raphael-theriault-swi merged 1 commit into
open-telemetry:mainfrom
emmayusufu:docs/fix-grpc-compression-import
Jun 5, 2026
Merged

docs(exporter-trace-otlp-grpc): import CompressionAlgorithm from otlp-exporter-base#6777
raphael-theriault-swi merged 1 commit into
open-telemetry:mainfrom
emmayusufu:docs/fix-grpc-compression-import

Conversation

@emmayusufu

Copy link
Copy Markdown
Contributor

The compression example in the gRPC exporter README imports CompressionAlgorithm from @opentelemetry/exporter-trace-otlp-grpc, but that package only exports OTLPTraceExporter, so CompressionAlgorithm ends up undefined and CompressionAlgorithm.GZIP throws. It's exported from @opentelemetry/otlp-exporter-base, so I pointed the import there.

Docs-only, no code change.

…-exporter-base

The README compression example imported CompressionAlgorithm from
@opentelemetry/exporter-trace-otlp-grpc, which only exports OTLPTraceExporter,
so it was undefined at runtime. CompressionAlgorithm is exported from
@opentelemetry/otlp-exporter-base.

Signed-off-by: Emmanuel Yusufu Kimaswa <kimaswaemma36@gmail.com>
@emmayusufu
emmayusufu requested a review from a team as a code owner May 30, 2026 06:38

@raphael-theriault-swi raphael-theriault-swi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you !

@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.92%. Comparing base (6adb9b4) to head (e8b750b).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6777   +/-   ##
=======================================
  Coverage   94.92%   94.92%           
=======================================
  Files         377      377           
  Lines       12817    12817           
  Branches     2924     2924           
=======================================
  Hits        12167    12167           
  Misses        650      650           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@raphael-theriault-swi
raphael-theriault-swi added this pull request to the merge queue Jun 5, 2026
Merged via the queue into open-telemetry:main with commit bfbda7c Jun 5, 2026
31 checks passed
@otelbot

otelbot Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Thank you for your contribution @emmayusufu! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

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.

2 participants