@@ -372,13 +372,7 @@ use opentelemetry_sdk::ExportError;
372372use opentelemetry_sdk:: Resource ;
373373#[ cfg( feature = "live-metrics" ) ]
374374pub use quick_pulse:: LiveMetricsSpanProcessor ;
375- use std:: {
376- convert:: TryInto ,
377- error:: Error as StdError ,
378- fmt:: Debug ,
379- sync:: { Arc , Mutex } ,
380- time:: Duration ,
381- } ;
375+ use std:: { convert:: TryInto , error:: Error as StdError , fmt:: Debug , sync:: Arc } ;
382376#[ cfg( feature = "live-metrics" ) ]
383377use uploader_quick_pulse:: PostOrPing ;
384378
@@ -392,7 +386,6 @@ pub struct Exporter<C> {
392386 #[ cfg( feature = "live-metrics" ) ]
393387 live_ping_endpoint : http:: Uri ,
394388 instrumentation_key : String ,
395- retry_notify : Option < Arc < Mutex < dyn FnMut ( & Error , Duration ) + Send + ' static > > > ,
396389 #[ cfg( feature = "trace" ) ]
397390 sample_rate : f64 ,
398391 #[ cfg( any( feature = "trace" , feature = "logs" ) ) ]
@@ -443,7 +436,6 @@ impl<C> Exporter<C> {
443436 & instrumentation_key,
444437 ) ,
445438 instrumentation_key,
446- retry_notify : None ,
447439 #[ cfg( feature = "trace" ) ]
448440 sample_rate : 100.0 ,
449441 #[ cfg( any( feature = "trace" , feature = "logs" ) ) ]
@@ -483,7 +475,6 @@ impl<C> Exporter<C> {
483475 & connection_string. instrumentation_key ,
484476 ) ,
485477 instrumentation_key : connection_string. instrumentation_key ,
486- retry_notify : None ,
487478 #[ cfg( feature = "trace" ) ]
488479 sample_rate : 100.0 ,
489480 #[ cfg( any( feature = "trace" , feature = "logs" ) ) ]
@@ -493,16 +484,6 @@ impl<C> Exporter<C> {
493484 } )
494485 }
495486
496- /// Set a retry notification function that is called when a request to upload telemetry to
497- /// Application Insights failed and will be retried.
498- pub fn with_retry_notify < N > ( mut self , retry_notify : N ) -> Self
499- where
500- N : FnMut ( & Error , Duration ) + Send + ' static ,
501- {
502- self . retry_notify = Some ( Arc :: new ( Mutex :: new ( retry_notify) ) ) ;
503- self
504- }
505-
506487 /// Set endpoint used to ingest telemetry. This should consist of scheme and authrity. The
507488 /// exporter will call `/v2/track` on the specified endpoint.
508489 ///
0 commit comments