-
Notifications
You must be signed in to change notification settings - Fork 534
Remove spec_unstable_logs_enabled feature -copilot try1 #3029 #3031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Remove spec_unstable_logs_enabled feature -copilot try1 #3029 #3031
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3031 +/- ##
=======================================
- Coverage 81.1% 81.1% -0.1%
=======================================
Files 126 126
Lines 24954 24949 -5
=======================================
- Hits 20255 20250 -5
Misses 4699 4699 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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 removes the spec_unstable_logs_enabled
feature flag and unconditionally enables all log-related APIs across crates.
- Strips
spec_unstable_logs_enabled
from Cargo manifests and scripts - Deletes
#[cfg(feature = "spec_unstable_logs_enabled")]
guards and imports - Updates documentation and changelogs to reflect the breaking change
Reviewed Changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
stress/Cargo.toml | Drop unstable logs feature from stress tests |
scripts/lint.sh | Remove spec_unstable_logs_enabled from clippy checks |
opentelemetry/src/logs/noop.rs | Unconditional event_enabled implementation |
opentelemetry/src/logs/logger.rs | Always import and declare event_enabled |
opentelemetry/src/lib.rs | Update docs to remove old feature flag |
opentelemetry/Cargo.toml | Remove spec_unstable_logs_enabled from features |
opentelemetry/CHANGELOG.md | Document removal of unstable logs feature |
opentelemetry-stdout/Cargo.toml | Clean up logs feature dependencies |
opentelemetry-sdk/src/logs/simple_log_processor.rs | Enable event_enabled always, remove cfg |
opentelemetry-sdk/src/logs/logger.rs | Drop cfg import and enable guardless method |
opentelemetry-sdk/src/logs/log_processor.rs | Remove #[cfg] and import for Severity |
opentelemetry-sdk/src/logs/export.rs | Delete cfg guard from event_enabled |
opentelemetry-sdk/src/logs/concurrent_log_processor.rs | Reorder methods and drop cfg on processor |
opentelemetry-sdk/src/lib.rs | Update crate-level docs for logs features |
opentelemetry-sdk/benches/log_enabled.rs | Adjust bench invocation comment |
opentelemetry-sdk/Cargo.toml | Remove obsolete required-features from bench |
opentelemetry-sdk/CHANGELOG.md | Note breaking change in SDK changelog |
opentelemetry-appender-tracing/src/lib.rs | Update docs, remove old feature TODO |
opentelemetry-appender-tracing/src/layer.rs | Drop cfg guard around event_enabled |
opentelemetry-appender-tracing/Cargo.toml | Remove spec_unstable logs feature flag |
opentelemetry-appender-tracing/CHANGELOG.md | Add removal note for unstable logs feature |
opentelemetry-appender-log/src/lib.rs | Refactor enabled to always call event_enabled |
opentelemetry-appender-log/Cargo.toml | Remove spec_unstable logs from features |
opentelemetry-appender-log/CHANGELOG.md | Document unstable logs flag removal |
Comments suppressed due to low confidence (3)
opentelemetry-appender-tracing/src/lib.rs:138
- There’s a stray empty doc comment (
//!
) right before the new removal notice. You can remove this line to avoid an empty documentation paragraph.
//!
opentelemetry-appender-log/src/lib.rs:93
- This is an empty doc comment that isn’t adding content. Removing it will clean up the Feature Flags section.
//!
opentelemetry-sdk/Cargo.toml:93
- The
log_enabled
bench no longer has anyrequired-features
defined, which may lead it to compile without the intendedexperimental_logs_concurrent_log_processor
feature. Consider re-adding:
required-features = ["experimental_logs_concurrent_log_processor"]
harness = false
@@ -89,9 +89,8 @@ | |||
//! | |||
//! # Feature Flags | |||
//! | |||
//! This library provides the following Cargo features: | |||
//! All log features are now always enabled. The previous `spec_unstable_logs_enabled` feature flag has been removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That doesn't sound right. Only the event_enabled feature is being made always enabled. Users would still have to opt in for other optional features such as with-serde
in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct. Silly mistake by Copilot!
Fixes #3020