Skip to content

zstd compression and more flexible configuration#4

Merged
raphael-theriault-swi merged 5 commits into
mainfrom
NH-139352
Jun 10, 2026
Merged

zstd compression and more flexible configuration#4
raphael-theriault-swi merged 5 commits into
mainfrom
NH-139352

Conversation

@raphael-theriault-swi

Copy link
Copy Markdown
Contributor

This adds zstd compression support as an opt-in (for now) and makes the configuration options more flexible

Copilot AI review requested due to automatic review settings June 1, 2026 21:35
@raphael-theriault-swi raphael-theriault-swi requested review from a team as code owners June 1, 2026 21:35

Copilot AI 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.

Pull request overview

This PR adds opt-in zstd compression for OTLP export requests and refactors configuration parsing to support more flexible endpoint/compression environment variable overrides.

Changes:

  • Add zstd as an exporter compression option (alongside gzip) and propagate the choice through the export pipeline.
  • Switch env var parsing to envy and add support for overriding collector/exporter endpoints via additional env vars.
  • Update CI publishing to suffix layer/image names for non-main refs.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/exporter.rs Select gzip vs zstd encoder at export time and set Content-Encoding accordingly.
src/env.rs Introduce Env deserialization via envy, add Compression, and expand endpoint configuration precedence.
README.md Document new/updated configuration precedence rules.
Cargo.toml Add envy dependency for env var parsing.
Cargo.lock Lockfile update for envy.
.github/workflows/ci.yaml Add a ref-based suffix to published layer/image names.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/env.rs
Comment thread README.md
Comment thread .github/workflows/ci.yaml
raphael-theriault-swi and others added 4 commits June 1, 2026 17:39
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@cheempz cheempz 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.

LGTM

@raphael-theriault-swi raphael-theriault-swi merged commit dc7c326 into main Jun 10, 2026
14 checks passed
@raphael-theriault-swi raphael-theriault-swi deleted the NH-139352 branch June 10, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants