@@ -23,7 +23,14 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
23
23
{
24
24
severityText : 'trace' ,
25
25
body : { stringValue : 'console.trace 123 false' } ,
26
- attributes : [ ] ,
26
+ attributes : [
27
+ {
28
+ key : 'sentry.origin' ,
29
+ value : {
30
+ stringValue : 'auto.console.logging' ,
31
+ } ,
32
+ } ,
33
+ ] ,
27
34
timeUnixNano : expect . any ( String ) ,
28
35
traceId : expect . any ( String ) ,
29
36
severityNumber : 1 ,
@@ -37,7 +44,14 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
37
44
{
38
45
severityText : 'debug' ,
39
46
body : { stringValue : 'console.debug 123 false' } ,
40
- attributes : [ ] ,
47
+ attributes : [
48
+ {
49
+ key : 'sentry.origin' ,
50
+ value : {
51
+ stringValue : 'auto.console.logging' ,
52
+ } ,
53
+ } ,
54
+ ] ,
41
55
timeUnixNano : expect . any ( String ) ,
42
56
traceId : expect . any ( String ) ,
43
57
severityNumber : 5 ,
@@ -51,7 +65,14 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
51
65
{
52
66
severityText : 'info' ,
53
67
body : { stringValue : 'console.log 123 false' } ,
54
- attributes : [ ] ,
68
+ attributes : [
69
+ {
70
+ key : 'sentry.origin' ,
71
+ value : {
72
+ stringValue : 'auto.console.logging' ,
73
+ } ,
74
+ } ,
75
+ ] ,
55
76
timeUnixNano : expect . any ( String ) ,
56
77
traceId : expect . any ( String ) ,
57
78
severityNumber : 10 ,
@@ -65,7 +86,14 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
65
86
{
66
87
severityText : 'info' ,
67
88
body : { stringValue : 'console.info 123 false' } ,
68
- attributes : [ ] ,
89
+ attributes : [
90
+ {
91
+ key : 'sentry.origin' ,
92
+ value : {
93
+ stringValue : 'auto.console.logging' ,
94
+ } ,
95
+ } ,
96
+ ] ,
69
97
timeUnixNano : expect . any ( String ) ,
70
98
traceId : expect . any ( String ) ,
71
99
severityNumber : 9 ,
@@ -79,7 +107,14 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
79
107
{
80
108
severityText : 'warn' ,
81
109
body : { stringValue : 'console.warn 123 false' } ,
82
- attributes : [ ] ,
110
+ attributes : [
111
+ {
112
+ key : 'sentry.origin' ,
113
+ value : {
114
+ stringValue : 'auto.console.logging' ,
115
+ } ,
116
+ } ,
117
+ ] ,
83
118
timeUnixNano : expect . any ( String ) ,
84
119
traceId : expect . any ( String ) ,
85
120
severityNumber : 13 ,
@@ -93,7 +128,14 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
93
128
{
94
129
severityText : 'error' ,
95
130
body : { stringValue : 'console.error 123 false' } ,
96
- attributes : [ ] ,
131
+ attributes : [
132
+ {
133
+ key : 'sentry.origin' ,
134
+ value : {
135
+ stringValue : 'auto.console.logging' ,
136
+ } ,
137
+ } ,
138
+ ] ,
97
139
timeUnixNano : expect . any ( String ) ,
98
140
traceId : expect . any ( String ) ,
99
141
severityNumber : 17 ,
@@ -107,7 +149,14 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
107
149
{
108
150
severityText : 'error' ,
109
151
body : { stringValue : 'Assertion failed: console.assert 123 false' } ,
110
- attributes : [ ] ,
152
+ attributes : [
153
+ {
154
+ key : 'sentry.origin' ,
155
+ value : {
156
+ stringValue : 'auto.console.logging' ,
157
+ } ,
158
+ } ,
159
+ ] ,
111
160
timeUnixNano : expect . any ( String ) ,
112
161
traceId : expect . any ( String ) ,
113
162
severityNumber : 17 ,
0 commit comments