Skip to content

Use crates.io opentelemetry deps instead of git rev - #357

Merged
mheffner merged 1 commit into
mainfrom
chore/opentelemetry-registry-deps
Aug 3, 2026
Merged

Use crates.io opentelemetry deps instead of git rev#357
mheffner merged 1 commit into
mainfrom
chore/opentelemetry-registry-deps

Conversation

@mheffner

@mheffner mheffner commented Aug 2, 2026

Copy link
Copy Markdown
Member

Summary

Switches all opentelemetry / opentelemetry_sdk / opentelemetry-proto dependencies from the pinned git rev (284a37d9) to their published crates.io releases. This clears the standing Dependabot alert for opentelemetry_sdk, which was a false positive: we were already on the patched 0.32.1, but sourcing it from git meant Dependabot couldn't match it against its advisory database.

Why this is safe

  • crates.io has the exact versions the git rev provided: opentelemetry 0.32.0, opentelemetry_sdk 0.32.1, opentelemetry-proto 0.32.0.
  • The reason for the original git pin — the 32-bit ARM AtomicU64/portable-atomic fix (open-telemetry/opentelemetry-rust#3345, merged 2026-02-06) — is already included in the published opentelemetry_sdk 0.32.1 (confirmed: it carries the portable-atomic dependency). So the pin is no longer needed.

Changes

  • Cargo.toml, utilities/, rotel_python_processor_sdk/, rotel_rust_processor_sdk/: git rev → registry versions.
  • The optional prometheus feature's fork (mheffner/opentelemetry-prometheus-text-exporter, branch sorted-otel-0.32.1) was the last thing dragging a git-sourced opentelemetry_sdk into Cargo.lock. It was updated to registry deps and the lock bumped to the new commit (bbeebcf).
  • Result: zero git-sourced opentelemetry* packages remain in Cargo.lock.

Verification

  • Builds clean: default, --features prometheus, --features pyo3.
  • Full test suite: 534 pass, 0 fail.
  • Fork's own suite: 25 pass.

After merge, Dependabot's next scan should clear the opentelemetry_sdk alert.

opentelemetry_sdk 0.32.1 (the version fixing the flagged advisory) and
opentelemetry/opentelemetry-proto 0.32.0 are all published on crates.io,
and 0.32.1 already includes the 32-bit ARM portable-atomic fix (PR #3345),
so the git pin to rev 284a37d9 is no longer needed. Sourcing from git kept
a git-based opentelemetry_sdk in Cargo.lock, which Dependabot cannot match
against its advisory DB and flagged as a false positive.

The prometheus feature's fork (opentelemetry-prometheus-text-exporter) was
likewise updated to registry deps so no git-sourced opentelemetry remains
in the lockfile. Builds verified for default, prometheus, and pyo3
features; full test suite passes.
@mheffner
mheffner merged commit 46a6147 into main Aug 3, 2026
12 checks passed
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