Skip to content

Commit 9d62bb9

Browse files
committed
Remove ExportResult and TraceError as no longer required/used
1 parent d79950d commit 9d62bb9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

opentelemetry-sdk/src/trace/export.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@
22
use crate::error::OTelSdkResult;
33
use crate::Resource;
44
use futures_util::future::BoxFuture;
5-
use opentelemetry::trace::{SpanContext, SpanId, SpanKind, Status, TraceError};
5+
use opentelemetry::trace::{SpanContext, SpanId, SpanKind, Status};
66
use opentelemetry::{InstrumentationScope, KeyValue};
77
use std::borrow::Cow;
88
use std::fmt::Debug;
99
use std::time::SystemTime;
1010

11-
/// Describes the result of an export.
12-
pub type ExportResult = Result<(), TraceError>;
13-
1411
/// `SpanExporter` defines the interface that protocol-specific exporters must
1512
/// implement so that they can be plugged into OpenTelemetry SDK and support
1613
/// sending of telemetry data.

opentelemetry-sdk/src/trace/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mod tracer;
2323

2424
pub use config::{config, Config};
2525
pub use events::SpanEvents;
26-
pub use export::{ExportResult, SpanData, SpanExporter};
26+
pub use export::{SpanData, SpanExporter};
2727

2828
/// In-Memory span exporter for testing purpose.
2929
#[cfg(any(feature = "testing", test))]

0 commit comments

Comments
 (0)