refactor!: make tracing feature opt-in instead of default - #12
Merged
Conversation
The `tracing` feature (which pulls in `tracing`, `tracing-opentelemetry`, and `opentelemetry` crates) is now opt-in rather than included by default. This reduces compile times and dependency count for users who don't need OpenTelemetry trace/span capture. Users who rely on automatic OTel context propagation should add `features = ["tracing"]` to their aerro dependency. BREAKING CHANGE: `tracing` is no longer in the default feature set. Add `features = ["tracing"]` to restore previous behavior. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ae2rs
added a commit
that referenced
this pull request
May 26, 2026
The `tracing` feature (which pulls in `tracing`, `tracing-opentelemetry`, and `opentelemetry` crates) is now opt-in rather than included by default. This reduces compile times and dependency count for users who don't need OpenTelemetry trace/span capture. Users who rely on automatic OTel context propagation should add `features = ["tracing"]` to their aerro dependency. BREAKING CHANGE: `tracing` is no longer in the default feature set. Add `features = ["tracing"]` to restore previous behavior. Co-authored-by: ae2rs <ae2rs@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tracingfrom the default feature set incrates/aerro/Cargo.toml— default is now["macro"]onlylib.rsandREADME.mdto reflect the new defaultMotivation
The
tracingfeature pulls in three additional crates (tracing,tracing-opentelemetry,opentelemetry) that many users don't need. Making it opt-in reduces default compile times and dependency count. Thetrace.rsmodule is already properly feature-gated with#[cfg(feature = "tracing")], so this change requires no code modifications — only Cargo.toml and docs.Migration
Add
features = ["tracing"]to your aerro dependency if you rely on automatic OTel trace/span context capture:Test plan
cargo test— all 52 tests pass with default features (no tracing)cargo test --features tracing— all 52 tests pass with tracing enabledcargo clippy --workspace --all-targets— zero warnings🤖 Generated with Claude Code