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 {
99
99
...options ,
100
100
attributes : {
101
101
...options ?. attributes ,
102
- ... ( options ?. icon ? { [ SemanticInternalAttributes . STYLE_ICON ] : options . icon } : { } ) ,
102
+ [ SemanticInternalAttributes . STYLE_ICON ] : options ? .icon ?? "trace" ,
103
103
} ,
104
104
} ;
105
105
Original file line number Diff line number Diff line change @@ -12,6 +12,20 @@ export const helloWorldTask = task({
12
12
logger . warn ( "warn: Hello, world!" , { payload } ) ;
13
13
logger . error ( "error: Hello, world!" , { payload } ) ;
14
14
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
+
15
29
await wait . for ( { seconds : 5 } ) ;
16
30
17
31
return {
You can’t perform that action at this time.
0 commit comments