Skip to content

Commit

Permalink
Merge branch 'main' into dev/mboddewy/add_criterion_benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbodd authored Dec 4, 2024
2 parents d167101 + 0c3771a commit 6f3e6f1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions opentelemetry-user-events-logs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## vNext

- Renamed `logs_level_enabled` flag to `spec_unstable_logs_enabled` to be consistent with core repo.

## v0.8.0

### Changed
Expand Down
4 changes: 2 additions & 2 deletions opentelemetry-user-events-logs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ tracing-subscriber = { version = "0.3.0", default-features = false, features = [
microbench = "0.5"

[features]
logs_level_enabled = ["opentelemetry/spec_unstable_logs_enabled", "opentelemetry_sdk/spec_unstable_logs_enabled"]
default = ["logs_level_enabled"]
spec_unstable_logs_enabled = ["opentelemetry/spec_unstable_logs_enabled", "opentelemetry_sdk/spec_unstable_logs_enabled", "opentelemetry-appender-tracing/spec_unstable_logs_enabled"]
default = ["spec_unstable_logs_enabled"]
2 changes: 1 addition & 1 deletion opentelemetry-user-events-logs/src/logs/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ impl opentelemetry_sdk::export::logs::LogExporter for UserEventsExporter {
Ok(())
}

#[cfg(feature = "logs_level_enabled")]
#[cfg(feature = "spec_unstable_logs_enabled")]
fn event_enabled(&self, level: Severity, _target: &str, name: &str) -> bool {
let (found, keyword) = if self.exporter_config.keywords_map.is_empty() {
(true, self.exporter_config.default_keyword)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::fmt::Debug;

use opentelemetry_sdk::logs::LogResult;

#[cfg(feature = "logs_level_enabled")]
#[cfg(feature = "spec_unstable_logs_enabled")]
use opentelemetry_sdk::export::logs::LogExporter;

use crate::logs::exporter::*;
Expand Down Expand Up @@ -46,7 +46,7 @@ impl opentelemetry_sdk::logs::LogProcessor for ReentrantLogProcessor {
Ok(())
}

#[cfg(feature = "logs_level_enabled")]
#[cfg(feature = "spec_unstable_logs_enabled")]
fn event_enabled(
&self,
level: opentelemetry::logs::Severity,
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if rustup component add clippy; then
# cargo_feature opentelemetry-stackdriver "tls-webpki-roots"

cargo_feature opentelemetry-user-events-logs "default"
cargo_feature opentelemetry-user-events-logs "logs_level_enabled"
cargo_feature opentelemetry-user-events-logs "spec_unstable_logs_enabled"

cargo_feature opentelemetry-user-events-metrics ""

Expand Down

0 comments on commit 6f3e6f1

Please sign in to comment.