@@ -25,6 +25,14 @@ pub use config::{config, Config};
2525pub use events:: SpanEvents ;
2626pub use export:: { ExportResult , SpanData , SpanExporter } ;
2727
28+ /// In-Memory span exporter for testing purpose.
29+ #[ cfg( any( feature = "testing" , test) ) ]
30+ #[ cfg_attr( docsrs, doc( cfg( any( feature = "testing" , test) ) ) ) ]
31+ pub mod in_memory_exporter;
32+ #[ cfg( any( feature = "testing" , test) ) ]
33+ #[ cfg_attr( docsrs, doc( cfg( any( feature = "testing" , test) ) ) ) ]
34+ pub use in_memory_exporter:: { InMemorySpanExporter , InMemorySpanExporterBuilder } ;
35+
2836pub use id_generator:: { IdGenerator , RandomIdGenerator } ;
2937pub use links:: SpanLinks ;
3038pub use provider:: { Builder , TracerProvider } ;
@@ -50,8 +58,8 @@ mod tests {
5058
5159 use super :: * ;
5260 use crate :: {
53- testing:: trace:: { InMemorySpanExporter , InMemorySpanExporterBuilder } ,
5461 trace:: span_limit:: { DEFAULT_MAX_EVENT_PER_SPAN , DEFAULT_MAX_LINKS_PER_SPAN } ,
62+ trace:: { InMemorySpanExporter , InMemorySpanExporterBuilder } ,
5563 } ;
5664 use opentelemetry:: trace:: {
5765 SamplingDecision , SamplingResult , SpanKind , Status , TraceContextExt , TraceState ,
0 commit comments