Skip to content

Commit

Permalink
Minor cleanup in Stdout exporter (#2481)
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas authored Dec 27, 2024
1 parent 8fde6eb commit d52fec7
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 315 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ hyper = { version = "1.3", default-features = false }
hyper-util = "0.1"
log = "0.4.21"
once_cell = "1.13"
ordered-float = "4.0"
pin-project-lite = "0.2"
prost = "0.13"
prost-build = "0.13"
Expand Down
3 changes: 3 additions & 0 deletions opentelemetry-stdout/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

- Bump msrv to 1.75.0.
- *Breaking* time fields, `StartTime` and `EndTime` is printed on aggregation (Sum, Gauge, Histogram, ExpoHistogram) with 2 tabs, previously it was on aggregation data point, with 3 tabs, see [#2377](https://github.com/open-telemetry/opentelemetry-rust/pull/2377) and [#2411](https://github.com/open-telemetry/opentelemetry-rust/pull/2411).
- Removed unused dependency on `ordered-float`.
- Feature flag "populate-logs-event-name" is removed as no longer relevant.
LogRecord's `event_name()` is now automatically displayed.

## 0.27.0

Expand Down
2 changes: 0 additions & 2 deletions opentelemetry-stdout/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ default = ["trace", "metrics", "logs"]
trace = ["opentelemetry/trace", "opentelemetry_sdk/trace", "futures-util"]
metrics = ["async-trait", "opentelemetry/metrics", "opentelemetry_sdk/metrics"]
logs = ["opentelemetry/logs", "opentelemetry_sdk/logs", "async-trait", "thiserror", "opentelemetry_sdk/spec_unstable_logs_enabled"]
populate-logs-event-name = []

[dependencies]
async-trait = { workspace = true, optional = true }
Expand All @@ -34,7 +33,6 @@ futures-util = { workspace = true, optional = true }
opentelemetry = { version = "0.27", path = "../opentelemetry" }
opentelemetry_sdk = { version = "0.27", path = "../opentelemetry-sdk" }
serde = { workspace = true, features = ["derive"] }
ordered-float = { workspace = true }

[dev-dependencies]
opentelemetry = { path = "../opentelemetry", features = ["metrics"] }
Expand Down
306 changes: 0 additions & 306 deletions opentelemetry-stdout/src/common.rs

This file was deleted.

6 changes: 0 additions & 6 deletions opentelemetry-stdout/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
//! * `metrics`: Includes the metrics exporters.
//! * `logs`: Includes the logs exporters.
//!
//! The following feature flags generate additional code and types:
//! * `populate-logs-event-name`: Enables sending `LogRecord::event_name` as an attribute
//! with the key `name`
//!
//! # Examples
//!
//! ```no_run
Expand Down Expand Up @@ -64,8 +60,6 @@
deny(rustdoc::broken_intra_doc_links)
)]

pub(crate) mod common;

#[cfg(feature = "metrics")]
mod metrics;
#[cfg_attr(docsrs, doc(cfg(feature = "metrics")))]
Expand Down

0 comments on commit d52fec7

Please sign in to comment.