You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What needs to be changed? If you try to run the example as is, you will get "error[E0433]: failed to resolve: could not find sdk in opentelemetry" on the lines:
use opentelemetry::sdk::trace::TracerProvider;
use opentelemetry::{global, sdk::propagation::TraceContextPropagator, trace::Tracer};
This can be fixed by replacing them with
use opentelemetry::{global, trace::Tracer};
use opentelemetry_sdk::propagation::TraceContextPropagator;
use opentelemetry_sdk::trace::TracerProvider;
and replacing the following in Cargo.toml
opentelemetry = { version = "0.21.0", features = ["trace"] }
opentelemetry-stdout = { version = "0.2.0", features = ["trace"] }
with
opentelemetry = "0.22"
opentelemetry_sdk = "0.22"
opentelemetry-stdout = { version = "0.3", features = ["trace"] }
What needs to be changed? If you try to run the example as is, you will get "error[E0433]: failed to resolve: could not find
sdk
inopentelemetry
" on the lines:This can be fixed by replacing them with
and replacing the following in Cargo.toml
with
What is the name + path of the page that needs changed? The Rust getting started page
The text was updated successfully, but these errors were encountered: