File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ module Http (IO : IO_TYPE) (Curl_IO : CURL with type 'a t = 'a IO.t) : HTTP with
247247  (*  Given a list of strings, check pre-existing entry starting with `~name`; and adds the concatenation of `~name` and `~value` if not. *) 
248248  let  add_if_absent  ~name   ~value   strs  = 
249249    match  strs with 
250-     |  Some  strs  when  List. exists (StringLabels . starts_with ~prefix: (name^ " :"  )) strs -> strs
250+     |  Some  strs  when  List. exists (fun   s  ->  Stre . starts_with s  (name^ " :"  )) strs -> strs
251251    |  Some  strs  -> (String. concat " : "   [name; value]) :: strs
252252    |  None  -> [String. concat " : "   [name; value]]
253253
@@ -301,7 +301,8 @@ module Http (IO : IO_TYPE) (Curl_IO : CURL with type 'a t = 'a IO.t) : HTTP with
301301        " url.full"  , `String  url;
302302      ]
303303    in 
304-     let  explicit_span =  Possibly_otel. enter_manual_span ~__FUNCTION__ ~__FILE__ ~__LINE__ ~data: describe action_name in 
304+     let  explicit_span = 
305+       Possibly_otel. enter_manual_span ~__FUNCTION__:" Web.Http.add_if_absent"   ~__FILE__ ~__LINE__ ~data: describe action_name in 
305306
306307    let  headers =  match  Possibly_otel.Traceparent. get_ambient ~explicit_span  ()  with 
307308    |  None  -> headers
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments