File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed 
instrumentation/opentelemetry-instrumentation-httpx/src/opentelemetry/instrumentation/httpx Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -360,10 +360,11 @@ def _normalize_url(
360360        scheme , host , port , path  =  [
361361            part .decode () if  isinstance (part , bytes ) else  part  for  part  in  url 
362362        ]
363-         if  port :
364-             return  f"{ scheme }  ://{ host }  :{ port } { path }  " 
365-         else :
366-             return  f"{ scheme }  ://{ host } { path }  " 
363+         return  (
364+             f"{ scheme }  ://{ host }  :{ port } { path }  " 
365+             if  port 
366+             else  f"{ scheme }  ://{ host } { path }  " 
367+         )
367368
368369    return  str (url )
369370
@@ -1263,7 +1264,7 @@ async def _handle_async_request_wrapper(  # pylint: disable=too-many-locals
12631264
12641265        return  response 
12651266
1266-     # pylint: disable=too-many-branches 
1267+     # pylint: disable=too-many-branches,too-many-locals  
12671268    @classmethod  
12681269    def  instrument_client (
12691270        cls ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments