File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed 
packages/core/src/v3/logger 
references/hello-world/src/trigger Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export class OtelTaskLogger implements TaskLogger {
9999      ...options , 
100100      attributes : { 
101101        ...options ?. attributes , 
102-         ... ( options ?. icon  ?  {   [ SemanticInternalAttributes . STYLE_ICON ] : options . icon  }  :  { } ) , 
102+         [ SemanticInternalAttributes . STYLE_ICON ] : options ? .icon  ??   "trace" , 
103103      } , 
104104    } ; 
105105
Original file line number Diff line number Diff line change @@ -12,6 +12,20 @@ export const helloWorldTask = task({
1212    logger . warn ( "warn: Hello, world!" ,  {  payload } ) ; 
1313    logger . error ( "error: Hello, world!" ,  {  payload } ) ; 
1414
15+     logger . trace ( "my trace" ,  async  ( span )  =>  { 
16+       logger . debug ( "some log" ,  {  span } ) ; 
17+     } ) ; 
18+ 
19+     logger . trace ( 
20+       "my trace" , 
21+       async  ( span )  =>  { 
22+         logger . debug ( "some log" ,  {  span } ) ; 
23+       } , 
24+       { 
25+         icon : "tabler-ad-circle" , 
26+       } 
27+     ) ; 
28+ 
1529    await  wait . for ( {  seconds : 5  } ) ; 
1630
1731    return  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments