File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
opentelemetry-sdk/src/trace Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ struct SpanCountExporter {
2525
2626#[ cfg( any( feature = "rt-tokio" , feature = "rt-tokio-current-thread" ) ) ]
2727impl SpanExporter for SpanCountExporter {
28- async fn export ( & mut self , batch : Vec < crate :: trace:: SpanData > ) -> OTelSdkResult {
28+ async fn export ( & self , batch : Vec < crate :: trace:: SpanData > ) -> OTelSdkResult {
2929 self . span_count . fetch_add ( batch. len ( ) , Ordering :: SeqCst ) ;
3030 Ok ( ( ) )
3131 }
Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ mod tests {
457457 D : Fn ( Duration ) -> DS + ' static + Send + Sync ,
458458 DS : Future < Output = ( ) > + Send + Sync + ' static ,
459459 {
460- async fn export ( & mut self , _batch : Vec < SpanData > ) -> OTelSdkResult {
460+ async fn export ( & self , _batch : Vec < SpanData > ) -> OTelSdkResult {
461461 ( self . delay_fn ) ( self . delay_for ) . await ;
462462 Ok ( ( ) )
463463 }
You can’t perform that action at this time.
0 commit comments