Skip to content

feat!: use QCS core-deps; update OTEL version#35

Merged
BatmanAoD merged 27 commits into
mainfrom
feat-use-core-deps-update-otel-version
May 26, 2026
Merged

feat!: use QCS core-deps; update OTEL version#35
BatmanAoD merged 27 commits into
mainfrom
feat-use-core-deps-update-otel-version

Conversation

@BatmanAoD

@BatmanAoD BatmanAoD commented May 20, 2026

Copy link
Copy Markdown
Contributor

Breaking change because [a] updating OTEL is always a breaking change and [b] I removed the pyo3 feature (since it always needs to be enabled for the crates to be useful) and, because of that, had to move stubs generation into a new crate.

@windsurf-bot windsurf-bot Bot 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.

Looks good to me 🤙

💡 To request another review, post a new comment with "/windsurf-review".

@BatmanAoD BatmanAoD force-pushed the feat-use-core-deps-update-otel-version branch 3 times, most recently from 98b4fbb to ded54a8 Compare May 20, 2026 17:25
Comment thread crates/opentelemetry/src/lib.rs
Comment thread Cargo.toml Outdated
@BatmanAoD BatmanAoD force-pushed the feat-use-core-deps-update-otel-version branch from 090e604 to d9d2922 Compare May 22, 2026 21:52
@BatmanAoD BatmanAoD force-pushed the feat-use-core-deps-update-otel-version branch 3 times, most recently from 225ceed to 7c878d8 Compare May 24, 2026 18:23
description = "Macro for passing OpenTelemetry context from Python to Rust"
repository = "https://github.com/rigetti/pyo3-opentelemetry"
rust-version = "1.83.0"
rust-version = "1.88.0"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

required by tonic 0.14

//! This module provides a function to evaluate Python stub file templates for the Python module
//! added by `pyo3_tracing_subscriber::add_submodule`. Upstream build scripts may use this to write
//! the Python stub files in their build scripts.
//! This crate provides a function to generate Python stub files for the Python module added by

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moving this to its own crate was necessitated by the removal of the pyo3 feature (which seemed silly and confusing to me for a set of crates with "pyo3" in their names), because use of PyO3 crates necessitate linking against libpython for standalone binaries but cannot link against libpython when building an extension module. Since a build script is a binary, any dependency on a pyo3 library caused the build to fail when built as an extension module.

@BatmanAoD BatmanAoD force-pushed the feat-use-core-deps-update-otel-version branch from 7c878d8 to 6326ebe Compare May 24, 2026 22:13
//! # Related Crates
//!
//! * `pyo3-opentelemetry` - propagates `OpenTelemetry` contexts from Python into Rust.
#[cfg(feature = "pyo3")]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is why I removed the pyo3 feature: every single item in this crate is dependent on that feature. So the crate is simply empty without the pyo3 feature enabled.

@BatmanAoD BatmanAoD changed the title feat: use QCS core-deps; update OTEL version feat!: use QCS core-deps; update OTEL version May 24, 2026
@BatmanAoD BatmanAoD force-pushed the feat-use-core-deps-update-otel-version branch 2 times, most recently from 42e27b0 to 9c3f0d9 Compare May 25, 2026 16:49
@BatmanAoD BatmanAoD force-pushed the feat-use-core-deps-update-otel-version branch 2 times, most recently from a5815f8 to 9c99297 Compare May 25, 2026 17:05
@BatmanAoD BatmanAoD force-pushed the feat-use-core-deps-update-otel-version branch 3 times, most recently from 8adc1a7 to 14fd7f2 Compare May 25, 2026 17:12

@jselig-rigetti jselig-rigetti 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.

Overall nice changes 👍

Comment thread crates/opentelemetry-macros/CHANGELOG.md
Comment thread crates/opentelemetry/CHANGELOG.md
Comment thread crates/tracing-subscriber/src/lib.rs Outdated
Comment thread crates/tracing-subscriber/CHANGELOG.md
Comment thread crates/tracing-subscriber-build/README.md
@BatmanAoD BatmanAoD merged commit 7bf93c5 into main May 26, 2026
13 checks passed
@BatmanAoD BatmanAoD deleted the feat-use-core-deps-update-otel-version branch May 26, 2026 20:52
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.

3 participants