Skip to content

Update Rust crate tracing-opentelemetry to 0.28.0 #1588

Update Rust crate tracing-opentelemetry to 0.28.0

Update Rust crate tracing-opentelemetry to 0.28.0 #1588

Triggered via pull request November 13, 2024 22:18
Status Failure
Total duration 1m 51s
Artifacts

CI.yaml

on: pull_request
`cargo deny`
29s
`cargo deny`
Report Missing Dependencies
21s
Report Missing Dependencies
Nix Build
0s
Nix Build
Clippy
1m 43s
Clippy
Matrix: Rust CI
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
`cargo deny`
Process completed with exit code 1.
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.
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.28.0/src/layer.rs:616:17 | 614 | pub fn with_tracer<Tracer>(self, tracer: Tracer) -> OpenTelemetryLayer<S, Tracer> | ----------- required by a bound in this associated function 615 | where 616 | 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.28.0/src/layer.rs:616:32 | 614 | pub fn with_tracer<Tracer>(self, tracer: Tracer) -> OpenTelemetryLayer<S, Tracer> | ----------- required by a bound in this associated function 615 | where 616 | 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.28.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; 1 warning emitted
error: aborting due to 3 previous errors; 1 warning 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": [] }
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