@@ -25,6 +25,14 @@ pub use config::{config, Config};
25
25
pub use events:: SpanEvents ;
26
26
pub use export:: { ExportResult , SpanData , SpanExporter } ;
27
27
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
+
28
36
pub use id_generator:: { IdGenerator , RandomIdGenerator } ;
29
37
pub use links:: SpanLinks ;
30
38
pub use provider:: { Builder , TracerProvider } ;
@@ -50,8 +58,8 @@ mod tests {
50
58
51
59
use super :: * ;
52
60
use crate :: {
53
- testing:: trace:: { InMemorySpanExporter , InMemorySpanExporterBuilder } ,
54
61
trace:: span_limit:: { DEFAULT_MAX_EVENT_PER_SPAN , DEFAULT_MAX_LINKS_PER_SPAN } ,
62
+ trace:: { InMemorySpanExporter , InMemorySpanExporterBuilder } ,
55
63
} ;
56
64
use opentelemetry:: trace:: {
57
65
SamplingDecision , SamplingResult , SpanKind , Status , TraceContextExt , TraceState ,
0 commit comments