Update opentelemetry-rust monorepo to 0.27.0 #1583
CI.yaml
on: pull_request
`cargo deny`
31s
Report Missing Dependencies
20s
Nix Build
0s
Clippy
47s
Matrix: Rust CI
Annotations
9 errors and 2 warnings
the trait bound `opentelemetry_sdk::trace::Tracer: opentelemetry::trace::tracer::Tracer` is not satisfied:
src/lib.rs#L127
error[E0277]: the trait bound `opentelemetry_sdk::trace::Tracer: opentelemetry::trace::tracer::Tracer` is not satisfied
--> src/cli/cmds/server.rs:127:30
|
127 | .with_tracer(tracer)
| ----------- ^^^^^^ the trait `opentelemetry::trace::tracer::Tracer` is not implemented for `opentelemetry_sdk::trace::Tracer`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `opentelemetry::trace::tracer::Tracer`:
opentelemetry::global::trace::BoxedTracer
opentelemetry::trace::noop::NoopTracer
opentelemetry_sdk::trace::tracer::Tracer
note: required by a bound in `tracing_opentelemetry::OpenTelemetryLayer::<S, T>::with_tracer`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-opentelemetry-0.23.0/src/layer.rs:581:17
|
579 | pub fn with_tracer<Tracer>(self, tracer: Tracer) -> OpenTelemetryLayer<S, Tracer>
| ----------- required by a bound in this associated function
580 | where
581 | Tracer: otel::Tracer + PreSampledTracer + 'static,
| ^^^^^^^^^^^^ required by this bound in `OpenTelemetryLayer::<S, T>::with_tracer`
|
the trait bound `opentelemetry_sdk::trace::Tracer: tracing_opentelemetry::PreSampledTracer` is not satisfied:
src/lib.rs#L127
error[E0277]: the trait bound `opentelemetry_sdk::trace::Tracer: tracing_opentelemetry::PreSampledTracer` is not satisfied
--> src/cli/cmds/server.rs:127:30
|
127 | .with_tracer(tracer)
| ----------- ^^^^^^ the trait `tracing_opentelemetry::PreSampledTracer` is not implemented for `opentelemetry_sdk::trace::Tracer`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `tracing_opentelemetry::PreSampledTracer`:
opentelemetry::trace::noop::NoopTracer
opentelemetry_sdk::trace::tracer::Tracer
note: required by a bound in `tracing_opentelemetry::OpenTelemetryLayer::<S, T>::with_tracer`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-opentelemetry-0.23.0/src/layer.rs:581:32
|
579 | pub fn with_tracer<Tracer>(self, tracer: Tracer) -> OpenTelemetryLayer<S, Tracer>
| ----------- required by a bound in this associated function
580 | where
581 | Tracer: otel::Tracer + PreSampledTracer + 'static,
| ^^^^^^^^^^^^^^^^ required by this bound in `OpenTelemetryLayer::<S, T>::with_tracer`
|
the method `with_filter` exists for struct `OpenTelemetryLayer<_, Tracer>`, but its trait bounds were not satisfied:
src/lib.rs#L128
error[E0599]: the method `with_filter` exists for struct `OpenTelemetryLayer<_, Tracer>`, but its trait bounds were not satisfied
--> src/cli/cmds/server.rs:128:18
|
126 | / tracing_opentelemetry::layer()
127 | | .with_tracer(tracer)
128 | | .with_filter(LevelFilter::from_level(config.logging.level))
| | -^^^^^^^^^^^ method cannot be called on `OpenTelemetryLayer<_, Tracer>` due to unsatisfied trait bounds
| |_________________|
|
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-opentelemetry-0.23.0/src/layer.rs:37:1
|
37 | pub struct OpenTelemetryLayer<S, T> {
| ----------------------------------- doesn't satisfy `_: Layer<_>`
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opentelemetry_sdk-0.26.0/src/trace/tracer.rs:27:1
|
27 | pub struct Tracer {
| ----------------- doesn't satisfy `_: PreSampledTracer` or `_: Tracer`
|
= note: the following trait bounds were not satisfied:
`opentelemetry_sdk::trace::Tracer: opentelemetry::trace::tracer::Tracer`
which is required by `tracing_opentelemetry::OpenTelemetryLayer<_, opentelemetry_sdk::trace::Tracer>: tracing_subscriber::Layer<_>`
`opentelemetry_sdk::trace::Tracer: tracing_opentelemetry::PreSampledTracer`
which is required by `tracing_opentelemetry::OpenTelemetryLayer<_, opentelemetry_sdk::trace::Tracer>: tracing_subscriber::Layer<_>`
|
aborting due to 3 previous errors; 2 warnings emitted
error: aborting due to 3 previous errors; 2 warnings emitted
|
Clippy
Received a internal compiler error OR an unknown message type, view this in debug mode to view the payload
|
Clippy
{
"rendered": "Some errors have detailed explanations: E0277, E0599.\n",
"$message_type": "diagnostic",
"children": [],
"code": null,
"level": "failure-note",
"message": "Some errors have detailed explanations: E0277, E0599.",
"spans": []
}
|
Rust CI (stable)
Process completed with exit code 101.
|
Rust CI (nightly)
The job was canceled because "stable" failed.
|
Rust CI (nightly)
The operation was canceled.
|
use of deprecated method `opentelemetry::trace::TracerProvider::versioned_tracer`: Please use tracer_builder() instead:
src/lib.rs#L101
warning: use of deprecated method `opentelemetry::trace::TracerProvider::versioned_tracer`: Please use tracer_builder() instead
--> src/cli/cmds/server.rs:101:23
|
101 | Some(provider.versioned_tracer(
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
unused import: `util::SubscriberInitExt`:
src/lib.rs#L29
warning: unused import: `util::SubscriberInitExt`
--> src/cli/cmds/server.rs:29:48
|
29 | use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt, Layer};
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|