diff --git a/traces/Cargo.toml b/traces/Cargo.toml index f74f3d7..ebe4e51 100644 --- a/traces/Cargo.toml +++ b/traces/Cargo.toml @@ -18,6 +18,6 @@ serde = { workspace = true, features = ["derive"] } tonic = { workspace = true, features = ["tls"] } tokio = { workspace = true, features = ["default"] } -opentelemetry-otlp = { git = "ssh://git@github.com/open-telemetry/opentelemetry-rust.git", rev = "v0.21.2", features = ["tonic", "tls", "tls-roots"], optional = true } +opentelemetry-otlp = { version = "0.15", features = ["tonic", "tls", "tls-roots"], optional = true } -opentelemetry-stdout = { git = "ssh://git@github.com/open-telemetry/opentelemetry-rust.git", rev = "v0.21.2", features = ["trace"], optional = true } \ No newline at end of file +opentelemetry-stdout = { version = "0.3", features = ["trace"], optional = true } \ No newline at end of file diff --git a/traces/src/exporters/otlp_grpc.rs b/traces/src/exporters/otlp_grpc.rs index 62926ff..5e76672 100644 --- a/traces/src/exporters/otlp_grpc.rs +++ b/traces/src/exporters/otlp_grpc.rs @@ -1,9 +1,9 @@ use crate::errors::TracesError; use configs::{Configs, DynamicConfigs}; -use opentelemetry::global; +use opentelemetry::{global, propagation::TextMapCompositePropagator}; use opentelemetry_otlp::{Protocol, WithExportConfig}; use opentelemetry_sdk::{ - propagation::{BaggagePropagator, TextMapCompositePropagator, TraceContextPropagator}, + propagation::{BaggagePropagator, TraceContextPropagator}, runtime, trace::Config, }; diff --git a/traces/src/exporters/stdout.rs b/traces/src/exporters/stdout.rs index 84d8e2c..614122a 100644 --- a/traces/src/exporters/stdout.rs +++ b/traces/src/exporters/stdout.rs @@ -1,7 +1,7 @@ use crate::errors::TracesError; -use opentelemetry::global; +use opentelemetry::{global, propagation::TextMapCompositePropagator}; use opentelemetry_sdk::{ - propagation::{BaggagePropagator, TextMapCompositePropagator, TraceContextPropagator}, + propagation::{BaggagePropagator, TraceContextPropagator}, trace::{Config, TracerProvider}, }; use tracing::debug;