@@ -11,34 +11,34 @@ Sentry.init({
1111
1212async function run ( ) : Promise < void > {
1313 // only log attribute
14- Sentry . logger . info ( 'log_before_any_scope' , { log_attr : 'log_attr_1' } ) ;
14+ Sentry . logger . info ( 'log_before_any_scope' , { log_attr : 'log_attr_1' } , { } ) ;
1515
1616 Sentry . getGlobalScope ( ) . setAttribute ( 'global_scope_attr' , true ) ;
1717
1818 // this attribute will not be sent for now
1919 Sentry . getGlobalScope ( ) . setAttributes ( { array_attr : [ 1 , 2 , 3 ] } ) ;
2020
2121 // global scope, log attribute
22- Sentry . logger . info ( 'log_after_global_scope' , { log_attr : 'log_attr_2' } ) ;
22+ Sentry . logger . info ( 'log_after_global_scope' , { log_attr : 'log_attr_2' } , { } ) ;
2323
2424 Sentry . withIsolationScope ( isolationScope => {
2525 isolationScope . setAttribute ( 'isolation_scope_1_attr' , { value : 100 , unit : 'millisecond' } ) ;
2626
2727 // global scope, isolation scope, log attribute
28- Sentry . logger . info ( 'log_with_isolation_scope' , { log_attr : 'log_attr_3' } ) ;
28+ Sentry . logger . info ( 'log_with_isolation_scope' , { log_attr : 'log_attr_3' } , { } ) ;
2929
3030 Sentry . withScope ( scope => {
3131 scope . setAttribute ( 'scope_attr' , { value : 200 , unit : 'millisecond' } ) ;
3232
3333 // global scope, isolation scope, current scope attribute, log attribute
34- Sentry . logger . info ( 'log_with_scope' , { log_attr : 'log_attr_4' } ) ;
34+ Sentry . logger . info ( 'log_with_scope' , { log_attr : 'log_attr_4' } , { } ) ;
3535 } ) ;
3636
3737 Sentry . withScope ( scope2 => {
3838 scope2 . setAttribute ( 'scope_2_attr' , { value : 300 , unit : 'millisecond' } ) ;
3939
4040 // global scope, isolation scope, current scope attribute, log attribute
41- Sentry . logger . info ( 'log_with_scope_2' , { log_attr : 'log_attr_5' } ) ;
41+ Sentry . logger . info ( 'log_with_scope_2' , { log_attr : 'log_attr_5' } , { } ) ;
4242 } ) ;
4343 } ) ;
4444
0 commit comments