File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed 
src/elasticotel/sdk/resources Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1818
1919from  opentelemetry .semconv ._incubating .attributes  import  telemetry_attributes 
2020from  opentelemetry .sdk .resources  import  (
21+     Attributes ,
2122    Resource ,
2223    ResourceDetector ,
2324    PROCESS_RUNTIME_DESCRIPTION ,
@@ -42,7 +43,7 @@ def detect(self) -> "Resource":
4243                ),
4344            )
4445        )
45-         resource_info  =  {
46+         resource_info :  Attributes  =  {
4647            PROCESS_RUNTIME_DESCRIPTION : sys .version ,
4748            PROCESS_RUNTIME_NAME : sys .implementation .name ,
4849            PROCESS_RUNTIME_VERSION : runtime_version ,
@@ -54,7 +55,7 @@ class TelemetryDistroResourceDetector(ResourceDetector):
5455    """Resource detector to fill telemetry.distro attributes""" 
5556
5657    def  detect (self ) ->  "Resource" :
57-         resource_info  =  {
58+         resource_info :  Attributes  =  {
5859            telemetry_attributes .TELEMETRY_DISTRO_NAME : "elastic" ,
5960            telemetry_attributes .TELEMETRY_DISTRO_VERSION : version .__version__ ,
6061        }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments