@@ -41,7 +41,7 @@ pub trait TraceFlusher {
4141 traces : Vec < SendData > ,
4242 endpoint : Option < & Endpoint > ,
4343 proxy_https : & Option < String > ,
44- ssl_ca_cert : & Option < String > ,
44+ cls_ca_cert : & Option < String > ,
4545 ) -> Option < Vec < SendData > > ;
4646
4747 /// Flushes traces by getting every available batch on the aggregator.
@@ -115,7 +115,7 @@ impl TraceFlusher for ServerlessTraceFlusher {
115115 traces,
116116 None ,
117117 & self . config . proxy_https ,
118- & self . config . ssl_ca_cert ,
118+ & self . config . cls_ca_cert ,
119119 )
120120 . await ;
121121 if retry_result. is_some ( ) {
@@ -144,17 +144,17 @@ impl TraceFlusher for ServerlessTraceFlusher {
144144
145145 let traces_clone = traces. clone ( ) ;
146146 let proxy_https = self . config . proxy_https . clone ( ) ;
147- let ssl_ca_cert = self . config . ssl_ca_cert . clone ( ) ;
147+ let cls_ca_cert = self . config . cls_ca_cert . clone ( ) ;
148148 batch_tasks. spawn ( async move {
149- Self :: send ( traces_clone, None , & proxy_https, & ssl_ca_cert ) . await
149+ Self :: send ( traces_clone, None , & proxy_https, & cls_ca_cert ) . await
150150 } ) ;
151151
152152 for endpoint in self . additional_endpoints . clone ( ) {
153153 let traces_clone = traces. clone ( ) ;
154154 let proxy_https = self . config . proxy_https . clone ( ) ;
155- let ssl_ca_cert = self . config . ssl_ca_cert . clone ( ) ;
155+ let cls_ca_cert = self . config . cls_ca_cert . clone ( ) ;
156156 batch_tasks. spawn ( async move {
157- Self :: send ( traces_clone, Some ( & endpoint) , & proxy_https, & ssl_ca_cert ) . await
157+ Self :: send ( traces_clone, Some ( & endpoint) , & proxy_https, & cls_ca_cert ) . await
158158 } ) ;
159159 }
160160 }
@@ -175,7 +175,7 @@ impl TraceFlusher for ServerlessTraceFlusher {
175175 traces : Vec < SendData > ,
176176 endpoint : Option < & Endpoint > ,
177177 proxy_https : & Option < String > ,
178- ssl_ca_cert : & Option < String > ,
178+ cls_ca_cert : & Option < String > ,
179179 ) -> Option < Vec < SendData > > {
180180 if traces. is_empty ( ) {
181181 return None ;
@@ -186,7 +186,7 @@ impl TraceFlusher for ServerlessTraceFlusher {
186186 debug ! ( "TRACES | Flushing {} traces" , coalesced_traces. len( ) ) ;
187187
188188 let Ok ( http_client) =
189- ServerlessTraceFlusher :: get_http_client ( proxy_https. as_ref ( ) , ssl_ca_cert . as_ref ( ) )
189+ ServerlessTraceFlusher :: get_http_client ( proxy_https. as_ref ( ) , cls_ca_cert . as_ref ( ) )
190190 else {
191191 error ! ( "TRACES | Failed to create HTTP client" ) ;
192192 return None ;
@@ -227,13 +227,13 @@ fn ensure_crypto_provider_initialized() {
227227impl ServerlessTraceFlusher {
228228 pub fn get_http_client (
229229 proxy_https : Option < & String > ,
230- ssl_ca_cert : Option < & String > ,
230+ cls_ca_cert : Option < & String > ,
231231 ) -> Result <
232232 GenericHttpClient < hyper_http_proxy:: ProxyConnector < libdd_common:: connector:: Connector > > ,
233233 Box < dyn Error > ,
234234 > {
235235 // Create the base connector with optional custom TLS config
236- let connector = if let Some ( ca_cert_path) = ssl_ca_cert {
236+ let connector = if let Some ( ca_cert_path) = cls_ca_cert {
237237 // Ensure crypto provider is initialized before creating TLS config
238238 ensure_crypto_provider_initialized ( ) ;
239239
0 commit comments