@@ -19,14 +19,16 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
1919 expect ( envelopeItems [ 0 ] ) . toEqual ( [
2020 {
2121 type : 'log' ,
22- item_count : 7 ,
22+ item_count : 8 ,
2323 content_type : 'application/vnd.sentry.items.log+json' ,
2424 } ,
2525 {
2626 items : [
2727 {
2828 timestamp : expect . any ( Number ) ,
2929 level : 'trace' ,
30+ severity_number : 1 ,
31+ trace_id : expect . any ( String ) ,
3032 body : 'console.trace 123 false' ,
3133 attributes : {
3234 'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -37,6 +39,8 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
3739 {
3840 timestamp : expect . any ( Number ) ,
3941 level : 'debug' ,
42+ severity_number : 5 ,
43+ trace_id : expect . any ( String ) ,
4044 body : 'console.debug 123 false' ,
4145 attributes : {
4246 'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -47,6 +51,8 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
4751 {
4852 timestamp : expect . any ( Number ) ,
4953 level : 'info' ,
54+ severity_number : 10 ,
55+ trace_id : expect . any ( String ) ,
5056 body : 'console.log 123 false' ,
5157 attributes : {
5258 'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -57,6 +63,8 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
5763 {
5864 timestamp : expect . any ( Number ) ,
5965 level : 'info' ,
66+ severity_number : 9 ,
67+ trace_id : expect . any ( String ) ,
6068 body : 'console.info 123 false' ,
6169 attributes : {
6270 'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -67,6 +75,8 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
6775 {
6876 timestamp : expect . any ( Number ) ,
6977 level : 'warn' ,
78+ severity_number : 13 ,
79+ trace_id : expect . any ( String ) ,
7080 body : 'console.warn 123 false' ,
7181 attributes : {
7282 'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -77,6 +87,8 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
7787 {
7888 timestamp : expect . any ( Number ) ,
7989 level : 'error' ,
90+ severity_number : 17 ,
91+ trace_id : expect . any ( String ) ,
8092 body : 'console.error 123 false' ,
8193 attributes : {
8294 'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -87,13 +99,27 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
8799 {
88100 timestamp : expect . any ( Number ) ,
89101 level : 'error' ,
102+ severity_number : 17 ,
103+ trace_id : expect . any ( String ) ,
90104 body : 'Assertion failed: console.assert 123 false' ,
91105 attributes : {
92106 'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
93107 'sentry.sdk.name' : { value : 'sentry.javascript.browser' , type : 'string' } ,
94108 'sentry.sdk.version' : { value : expect . any ( String ) , type : 'string' } ,
95109 } ,
96110 } ,
111+ {
112+ timestamp : expect . any ( Number ) ,
113+ level : 'info' ,
114+ severity_number : 10 ,
115+ trace_id : expect . any ( String ) ,
116+ body : '' ,
117+ attributes : {
118+ 'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
119+ 'sentry.sdk.name' : { value : 'sentry.javascript.browser' , type : 'string' } ,
120+ 'sentry.sdk.version' : { value : expect . any ( String ) , type : 'string' } ,
121+ } ,
122+ } ,
97123 ] ,
98124 } ,
99125 ] ) ;
0 commit comments