Closed renovate[bot] closed 4 days ago
This PR updates the OpenTelemetry Rust dependencies from version 0.26.0 to 0.27.0. The update includes breaking changes in the OpenTelemetry OTLP API, particularly around metrics exporter interfaces and pipeline configuration patterns.
classDiagram
class MetricsExporterBuilder {
- with_temporality_selector(DeltaTemporalitySelector)
+ with_temporality(opentelemetry_sdk::metrics::Temporality)
}
class LoggerProvider {
- opentelemetry_otlp::new_pipeline().logging()
+ LoggerProvider::builder()
}
class LogExporter {
+ builder()
+ with_tonic()
+ with_endpoint(String)
+ build()
}
class MetricExporter {
<<Renamed>>
}
class MetricExporterBuilder {
<<Renamed>>
}
Change | Details | Files |
---|---|---|
Update OpenTelemetry dependencies to version 0.27.0 |
|
boundaries/billing/currency/Cargo.toml |
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
This PR contains the following updates:
0.26.0
->0.27.0
0.26.0
->0.27.0
0.26.0
->0.27.0
Release Notes
open-telemetry/opentelemetry-rust (opentelemetry)
### [`v0.27.0`](https://redirect.github.com/open-telemetry/opentelemetry-rust/compare/opentelemetry-http-0.26.0...opentelemetry-http-0.27.0) [Compare Source](https://redirect.github.com/open-telemetry/opentelemetry-rust/compare/opentelemetry-0.26.0...opentelemetry-0.27.0)open-telemetry/opentelemetry-rust (opentelemetry-otlp)
### [`v0.27.0`](https://redirect.github.com/open-telemetry/opentelemetry-rust/blob/HEAD/opentelemetry-otlp/CHANGELOG.md#0270) [Compare Source](https://redirect.github.com/open-telemetry/opentelemetry-rust/compare/opentelemetry-otlp-0.26.0...opentelemetry-otlp-0.27.0) Released 2024-Nov-11 - Update `opentelemetry` dependency version to 0.27 - Update `opentelemetry_sdk` dependency version to 0.27 - Update `opentelemetry-http` dependency version to 0.27 - Update `opentelemetry-proto` dependency version to 0.27 - **BREAKING**: - ([#2217](https://redirect.github.com/open-telemetry/opentelemetry-rust/pull/2217)) **Replaced**: The `MetricsExporterBuilder` interface is modified from `with_temporality_selector` to `with_temporality` example can be seen below: Previous Signature: ```rust MetricsExporterBuilder::default().with_temporality_selector(DeltaTemporalitySelector::new()) ``` Updated Signature: ```rust MetricsExporterBuilder::default().with_temporality(opentelemetry_sdk::metrics::Temporality::Delta) ``` - ([#2221](https://redirect.github.com/open-telemetry/opentelemetry-rust/pull/2221)) **Replaced**: - The `opentelemetry_otlp::new_pipeline().{trace,logging,metrics}()` interface is now replaced with `{TracerProvider,SdkMeterProvider,LoggerProvider}::builder()`. - The `opentelemetry_otlp::new_exporter()` interface is now replaced with `{SpanExporter,MetricsExporter,LogExporter}::builder()`. Pull request [#2221](https://redirect.github.com/open-telemetry/opentelemetry-rust/pull/2221) has a detailed migration guide in the description. See example below, and [basic-otlp](https://redirect.github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-otlp/examples/basic-otlp/src/main.rs) for more details: Previous Signature: ```rust let logger_provider: LoggerProvider = opentelemetry_otlp::new_pipeline() .logging() .with_resource(RESOURCE.clone()) .with_exporter( opentelemetry_otlp::new_exporter() .tonic() .with_endpoint("http://localhost:4317") ) .install_batch(runtime::Tokio)?; ``` Updated Signature: ```rust let exporter = LogExporter::builder() .with_tonic() .with_endpoint("http://localhost:4317") .build()?; Ok(LoggerProvider::builder() .with_resource(RESOURCE.clone()) .with_batch_exporter(exporter, runtime::Tokio) .build()) ``` - **Renamed** - ([#2255](https://redirect.github.com/open-telemetry/opentelemetry-rust/pull/2255)): de-pluralize Metric types. - `MetricsExporter` -> `MetricExporter` - `MetricsExporterBuilder` -> `MetricExporterBuilder` - [#2263](https://redirect.github.com/open-telemetry/opentelemetry-rust/pull/2263) Support `hyper` client for opentelemetry-otlp. This can be enabled using flag `hyper-client`. Refer example: https://github.com/open-telemetry/opentelemetry-rust/tree/main/opentelemetry-otlp/examples/basic-otlp-httpConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.