Skip to content

fix(deps): update opentelemetry-rust monorepo to 0.29.0 #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -18,11 +18,11 @@ http-body-util = "0.1.0"
anyhow = "1.0.82"
once_cell = "1.19.0"
tonic-tracing-opentelemetry = "0.18.1"
opentelemetry = { version = "0.22.0", features = ["trace"] }
opentelemetry_sdk = { version = "0.22.1", features = ["trace", "rt-tokio"] }
opentelemetry-semantic-conventions = "0.14.0"
opentelemetry-http = "0.11.0"
opentelemetry-otlp = { version = "0.15.0", features = [
opentelemetry = { version = "0.29.0", features = ["trace"] }
opentelemetry_sdk = { version = "0.29.0", features = ["trace", "rt-tokio"] }
opentelemetry-semantic-conventions = "0.29.0"
opentelemetry-http = "0.29.0"
opentelemetry-otlp = { version = "0.29.0", features = [
"trace",
# required to make grpc requests
"tls-roots",

Unchanged files with check annotations Beta

HeaderMap,
};
use once_cell::sync::Lazy;
use opentelemetry::{global, trace::TraceError, trace::TracerProvider, KeyValue};

Check failure on line 9 in src/main.rs

GitHub Actions / Build and Test

unresolved import `opentelemetry::trace::TraceError`
use opentelemetry_otlp::WithExportConfig;
use opentelemetry_sdk::{propagation::TraceContextPropagator, runtime, Resource};
use tonic::{metadata::MetadataMap, transport::Server as TonicServer, Response, Status};
}
static RESOURCE: Lazy<Resource> = Lazy::new(|| {
Resource::default().merge(&Resource::new(vec![

Check failure on line 168 in src/main.rs

GitHub Actions / Build and Test

no function or associated item named `default` found for struct `Resource` in the current scope

Check failure on line 168 in src/main.rs

GitHub Actions / Build and Test

associated function `new` is private
KeyValue::new(
opentelemetry_semantic_conventions::resource::SERVICE_NAME,
"rust-grpc",
HeaderValue::from_str(&std::env::var("HONEYCOMB_API_KEY")?)?,
)]);
let otlp_exporter = opentelemetry_otlp::new_exporter()

Check failure on line 189 in src/main.rs

GitHub Actions / Build and Test

cannot find function `new_exporter` in crate `opentelemetry_otlp`
.tonic()
.with_endpoint(TELEMETRY_URL)
.with_metadata(MetadataMap::from_headers(headers));
let provider = opentelemetry_otlp::new_pipeline()

Check failure on line 194 in src/main.rs

GitHub Actions / Build and Test

cannot find function `new_pipeline` in crate `opentelemetry_otlp`
.tracing()
.with_exporter(otlp_exporter)
.with_trace_config(opentelemetry_sdk::trace::config().with_resource(RESOURCE.clone()))

Check failure on line 197 in src/main.rs

GitHub Actions / Build and Test

expected function, found module `opentelemetry_sdk::trace::config`

Check failure on line 197 in src/main.rs

GitHub Actions / Build and Test

module `config` is private
.install_batch(runtime::Tokio)?
.provider()
.ok_or(TraceError::Other(