Skip to content

Update Rust crate tracing-opentelemetry to 0.27.0 #1220

Update Rust crate tracing-opentelemetry to 0.27.0

Update Rust crate tracing-opentelemetry to 0.27.0 #1220

Triggered via pull request September 17, 2024 17:02
Status Failure
Total duration 2m 5s
Artifacts

CI.yaml

on: pull_request
`cargo deny`
30s
`cargo deny`
Report Missing Dependencies
22s
Report Missing Dependencies
Nix Build
0s
Nix Build
Clippy
31s
Clippy
Matrix: Rust CI
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 2 warnings
the trait bound `opentelemetry_sdk::trace::Tracer: opentelemetry::trace::tracer::Tracer` is not satisfied: src/lib.rs#L128
error[E0277]: the trait bound `opentelemetry_sdk::trace::Tracer: opentelemetry::trace::tracer::Tracer` is not satisfied --> src/cli/cmds/server.rs:128:30 | 128 | .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.26.0/src/layer.rs:591:17 | 589 | pub fn with_tracer<Tracer>(self, tracer: Tracer) -> OpenTelemetryLayer<S, Tracer> | ----------- required by a bound in this associated function 590 | where 591 | 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#L128
error[E0277]: the trait bound `opentelemetry_sdk::trace::Tracer: tracing_opentelemetry::PreSampledTracer` is not satisfied --> src/cli/cmds/server.rs:128:30 | 128 | .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.26.0/src/layer.rs:591:32 | 589 | pub fn with_tracer<Tracer>(self, tracer: Tracer) -> OpenTelemetryLayer<S, Tracer> | ----------- required by a bound in this associated function 590 | where 591 | 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#L129
error[E0599]: the method `with_filter` exists for struct `OpenTelemetryLayer<_, Tracer>`, but its trait bounds were not satisfied --> src/cli/cmds/server.rs:129:18 | 127 | / tracing_opentelemetry::layer() 128 | | .with_tracer(tracer) 129 | | .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.26.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.22.1/src/trace/tracer.rs:29:1 | 29 | 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 type alias `image::io::Reader`: this type has been moved and renamed to image::ImageReader: src/lib.rs#L142
warning: use of deprecated type alias `image::io::Reader`: this type has been moved and renamed to image::ImageReader --> src/cli/cmds/screenshot.rs:142:51 | 142 | let img: image::DynamicImage = image::io::Reader::new(Cursor::new(&contents)).decode()?; | ^^^^^^ | = note: `#[warn(deprecated)]` on by default
unused import: `util::SubscriberInitExt`: src/lib.rs#L30
warning: unused import: `util::SubscriberInitExt` --> src/cli/cmds/server.rs:30:48 | 30 | use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt, Layer}; | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default