@@ -19,14 +19,16 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
19
19
expect ( envelopeItems [ 0 ] ) . toEqual ( [
20
20
{
21
21
type : 'log' ,
22
- item_count : 7 ,
22
+ item_count : 8 ,
23
23
content_type : 'application/vnd.sentry.items.log+json' ,
24
24
} ,
25
25
{
26
26
items : [
27
27
{
28
28
timestamp : expect . any ( Number ) ,
29
29
level : 'trace' ,
30
+ severity_number : 1 ,
31
+ trace_id : expect . any ( String ) ,
30
32
body : 'console.trace 123 false' ,
31
33
attributes : {
32
34
'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -37,6 +39,8 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
37
39
{
38
40
timestamp : expect . any ( Number ) ,
39
41
level : 'debug' ,
42
+ severity_number : 5 ,
43
+ trace_id : expect . any ( String ) ,
40
44
body : 'console.debug 123 false' ,
41
45
attributes : {
42
46
'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -47,6 +51,8 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
47
51
{
48
52
timestamp : expect . any ( Number ) ,
49
53
level : 'info' ,
54
+ severity_number : 10 ,
55
+ trace_id : expect . any ( String ) ,
50
56
body : 'console.log 123 false' ,
51
57
attributes : {
52
58
'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -57,6 +63,8 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
57
63
{
58
64
timestamp : expect . any ( Number ) ,
59
65
level : 'info' ,
66
+ severity_number : 9 ,
67
+ trace_id : expect . any ( String ) ,
60
68
body : 'console.info 123 false' ,
61
69
attributes : {
62
70
'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -67,6 +75,8 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
67
75
{
68
76
timestamp : expect . any ( Number ) ,
69
77
level : 'warn' ,
78
+ severity_number : 13 ,
79
+ trace_id : expect . any ( String ) ,
70
80
body : 'console.warn 123 false' ,
71
81
attributes : {
72
82
'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -77,6 +87,8 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
77
87
{
78
88
timestamp : expect . any ( Number ) ,
79
89
level : 'error' ,
90
+ severity_number : 17 ,
91
+ trace_id : expect . any ( String ) ,
80
92
body : 'console.error 123 false' ,
81
93
attributes : {
82
94
'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
@@ -87,13 +99,27 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
87
99
{
88
100
timestamp : expect . any ( Number ) ,
89
101
level : 'error' ,
102
+ severity_number : 17 ,
103
+ trace_id : expect . any ( String ) ,
90
104
body : 'Assertion failed: console.assert 123 false' ,
91
105
attributes : {
92
106
'sentry.origin' : { value : 'auto.console.logging' , type : 'string' } ,
93
107
'sentry.sdk.name' : { value : 'sentry.javascript.browser' , type : 'string' } ,
94
108
'sentry.sdk.version' : { value : expect . any ( String ) , type : 'string' } ,
95
109
} ,
96
110
} ,
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
+ } ,
97
123
] ,
98
124
} ,
99
125
] ) ;
0 commit comments