shortlink-org / shortlink

Shortlink service (Microservice example) ⭐️ Star the repo if you like it!
https://shortlink.best
MIT License
741 stars 38 forks source link

fix(deps): update opentelemetry-rust monorepo to 0.27.0 #19328

Closed renovate[bot] closed 4 days ago

renovate[bot] commented 5 days ago

This PR contains the following updates:

Package Type Update Change
opentelemetry dependencies minor 0.26.0 -> 0.27.0
opentelemetry-otlp (source) dependencies minor 0.26.0 -> 0.27.0
opentelemetry_sdk dependencies minor 0.26.0 -> 0.27.0

[!WARNING] Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


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-http

Configuration

📅 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.

sourcery-ai[bot] commented 5 days ago

Reviewer's Guide by Sourcery

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.

Class diagram for updated OpenTelemetry interfaces

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>>
    }

File-Level Changes

Change Details Files
Update OpenTelemetry dependencies to version 0.27.0
  • Update opentelemetry core library from 0.26.0 to 0.27.0
  • Update opentelemetry-otlp from 0.26.0 to 0.27.0
  • Update opentelemetry_sdk from 0.26.0 to 0.27.0
boundaries/billing/currency/Cargo.toml

Tips and commands #### Interacting with Sourcery - **Trigger a new review:** Comment `@sourcery-ai review` on the pull request. - **Continue discussions:** Reply directly to Sourcery's review comments. - **Generate a GitHub issue from a review comment:** Ask Sourcery to create an issue from a review comment by replying to it. - **Generate a pull request title:** Write `@sourcery-ai` anywhere in the pull request title to generate a title at any time. - **Generate a pull request summary:** Write `@sourcery-ai summary` anywhere in the pull request body to generate a PR summary at any time. You can also use this command to specify where the summary should be inserted. #### Customizing Your Experience Access your [dashboard](https://app.sourcery.ai) to: - Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others. - Change the review language. - Add, remove or edit custom review instructions. - Adjust other review settings. #### Getting Help - [Contact our support team](mailto:support@sourcery.ai) for questions or feedback. - Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information. - Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).
sonarcloud[bot] commented 4 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud