Skip to content

Commit

Permalink
Remove OTLPExporter dependency on sem conventions (#1769)
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas authored May 15, 2024
1 parent 6d7a16c commit 06ed50d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion opentelemetry-otlp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ opentelemetry = { version = "0.22", default-features = false, path = "../opentel
opentelemetry_sdk = { version = "0.22", default-features = false, path = "../opentelemetry-sdk" }
opentelemetry-http = { version = "0.11", path = "../opentelemetry-http", optional = true }
opentelemetry-proto = { version = "0.5", path = "../opentelemetry-proto", default-features = false }
opentelemetry-semantic-conventions = { version = "0.14", path = "../opentelemetry-semantic-conventions" }

prost = { workspace = true, optional = true }
tonic = { workspace = true, optional = true }
Expand Down
3 changes: 0 additions & 3 deletions opentelemetry-otlp/src/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use opentelemetry_sdk::{
self as sdk,
export::trace::{ExportResult, SpanData},
};
use opentelemetry_semantic_conventions::SCHEMA_URL;
use sdk::runtime::RuntimeChannel;

#[cfg(feature = "grpc-tonic")]
Expand Down Expand Up @@ -143,7 +142,6 @@ fn build_simple_with_exporter(
let tracer = provider
.tracer_builder("opentelemetry-otlp")
.with_version(env!("CARGO_PKG_VERSION"))
.with_schema_url(SCHEMA_URL)
.build();
let _ = global::set_tracer_provider(provider);
tracer
Expand All @@ -168,7 +166,6 @@ fn build_batch_with_exporter<R: RuntimeChannel>(
let tracer = provider
.tracer_builder("opentelemetry-otlp")
.with_version(env!("CARGO_PKG_VERSION"))
.with_schema_url(SCHEMA_URL)
.build();
let _ = global::set_tracer_provider(provider);
tracer
Expand Down

0 comments on commit 06ed50d

Please sign in to comment.