-
Notifications
You must be signed in to change notification settings - Fork 602
feat: Hide MetricReader and friends #2928
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
Changes from all commits
32a68ec
731dc3c
321defc
71f5734
4c79a99
36f6e58
650ffb7
8c2cfdf
8e1ce8d
bc4c144
9a1b2d0
cdb0ff5
76cb13d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,15 +23,22 @@ also modified to suppress telemetry before invoking exporters. | |
| - Fixed the overflow attribute to correctly use the boolean value `true` | ||
| instead of the string `"true"`. | ||
| [#2878](https://github.com/open-telemetry/opentelemetry-rust/issues/2878) | ||
|
|
||
| - *Breaking* change for custom `MetricReader` authors. | ||
| The `shutdown_with_timeout` method is added to `MetricReader` trait. | ||
| `collect` method on `MetricReader` modified to return `OTelSdkResult`. | ||
| [#2905](https://github.com/open-telemetry/opentelemetry-rust/pull/2905) | ||
| - *Breaking* `MetricError`, `MetricResult` no longer public (except when | ||
| `spec_unstable_metrics_views` feature flag is enabled). `OTelSdkResult` should | ||
| be used instead, wherever applicable. | ||
| - *Breaking* change, affecting custom MetricReader authors: The | ||
| `shutdown_with_timeout` method is added to `MetricReader` trait. `collect` | ||
| method on `MetricReader` modified to return `OTelSdkResult`. | ||
| [#2905](https://github.com/open-telemetry/opentelemetry-rust/pull/2905) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR link is added twice. |
||
| [#2905](https://github.com/open-telemetry/opentelemetry-rust/pull/2905) | ||
| - *Breaking* change, affecting custom MetricReader authors: `MetricReader` | ||
| trait, `ManualReader` struct, `Pipeline` struct, `InstrumentKind` enum moved | ||
| behind feature flag "experimental_metrics_custom_reader". These were only | ||
| required for writing custom readers. | ||
| [2928](https://github.com/open-telemetry/opentelemetry-rust/pull/2928) | ||
| - *Breaking* `Aggregation` enum moved behind feature flag | ||
| "spec_unstable_metrics_views". This was only required when using Views. | ||
| [2928](https://github.com/open-telemetry/opentelemetry-rust/pull/2928) | ||
|
|
||
| ## 0.29.0 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,12 +39,15 @@ | |
| //! | ||
| //! [Resource]: crate::Resource | ||
|
|
||
| #[allow(unreachable_pub)] | ||
| #[allow(unused)] | ||
| pub(crate) mod aggregation; | ||
| pub mod data; | ||
| mod error; | ||
| pub mod exporter; | ||
| pub(crate) mod instrument; | ||
| pub(crate) mod internal; | ||
| #[cfg(feature = "experimental_metrics_custom_reader")] | ||
| pub(crate) mod manual_reader; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably just delete |
||
| pub(crate) mod meter; | ||
| mod meter_provider; | ||
|
|
@@ -54,7 +57,10 @@ pub(crate) mod periodic_reader; | |
| /// Module for periodic reader with async runtime. | ||
| pub mod periodic_reader_with_async_runtime; | ||
| pub(crate) mod pipeline; | ||
| #[cfg(feature = "experimental_metrics_custom_reader")] | ||
| pub mod reader; | ||
| #[cfg(not(feature = "experimental_metrics_custom_reader"))] | ||
| pub(crate) mod reader; | ||
| pub(crate) mod view; | ||
|
|
||
| /// In-Memory metric exporter for testing purpose. | ||
|
|
@@ -65,14 +71,18 @@ pub mod in_memory_exporter; | |
| #[cfg_attr(docsrs, doc(cfg(any(feature = "testing", test))))] | ||
| pub use in_memory_exporter::{InMemoryMetricExporter, InMemoryMetricExporterBuilder}; | ||
|
|
||
| #[cfg(feature = "spec_unstable_metrics_views")] | ||
| pub use aggregation::*; | ||
| #[cfg(feature = "spec_unstable_metrics_views")] | ||
| pub use error::{MetricError, MetricResult}; | ||
| #[cfg(feature = "experimental_metrics_custom_reader")] | ||
| pub use manual_reader::*; | ||
| pub use meter_provider::*; | ||
| pub use periodic_reader::*; | ||
| #[cfg(feature = "experimental_metrics_custom_reader")] | ||
| pub use pipeline::Pipeline; | ||
|
|
||
| #[cfg(feature = "experimental_metrics_custom_reader")] | ||
| pub use instrument::InstrumentKind; | ||
|
|
||
| #[cfg(feature = "spec_unstable_metrics_views")] | ||
|
|
||
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.