@@ -23,7 +23,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
23
23
{
24
24
severityText : 'trace' ,
25
25
body : { stringValue : 'test trace' } ,
26
- attributes : [ ] ,
26
+ attributes : [
27
+ {
28
+ key : 'sentry.sdk.name' ,
29
+ value : {
30
+ stringValue : 'sentry.javascript.browser' ,
31
+ } ,
32
+ } ,
33
+ {
34
+ key : 'sentry.sdk.version' ,
35
+ value : {
36
+ stringValue : expect . any ( String ) ,
37
+ } ,
38
+ } ,
39
+ ] ,
27
40
timeUnixNano : expect . any ( String ) ,
28
41
traceId : expect . any ( String ) ,
29
42
severityNumber : 1 ,
@@ -37,7 +50,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
37
50
{
38
51
severityText : 'debug' ,
39
52
body : { stringValue : 'test debug' } ,
40
- attributes : [ ] ,
53
+ attributes : [
54
+ {
55
+ key : 'sentry.sdk.name' ,
56
+ value : {
57
+ stringValue : 'sentry.javascript.browser' ,
58
+ } ,
59
+ } ,
60
+ {
61
+ key : 'sentry.sdk.version' ,
62
+ value : {
63
+ stringValue : expect . any ( String ) ,
64
+ } ,
65
+ } ,
66
+ ] ,
41
67
timeUnixNano : expect . any ( String ) ,
42
68
traceId : expect . any ( String ) ,
43
69
severityNumber : 5 ,
@@ -51,7 +77,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
51
77
{
52
78
severityText : 'info' ,
53
79
body : { stringValue : 'test info' } ,
54
- attributes : [ ] ,
80
+ attributes : [
81
+ {
82
+ key : 'sentry.sdk.name' ,
83
+ value : {
84
+ stringValue : 'sentry.javascript.browser' ,
85
+ } ,
86
+ } ,
87
+ {
88
+ key : 'sentry.sdk.version' ,
89
+ value : {
90
+ stringValue : expect . any ( String ) ,
91
+ } ,
92
+ } ,
93
+ ] ,
55
94
timeUnixNano : expect . any ( String ) ,
56
95
traceId : expect . any ( String ) ,
57
96
severityNumber : 9 ,
@@ -65,7 +104,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
65
104
{
66
105
severityText : 'warn' ,
67
106
body : { stringValue : 'test warn' } ,
68
- attributes : [ ] ,
107
+ attributes : [
108
+ {
109
+ key : 'sentry.sdk.name' ,
110
+ value : {
111
+ stringValue : 'sentry.javascript.browser' ,
112
+ } ,
113
+ } ,
114
+ {
115
+ key : 'sentry.sdk.version' ,
116
+ value : {
117
+ stringValue : expect . any ( String ) ,
118
+ } ,
119
+ } ,
120
+ ] ,
69
121
timeUnixNano : expect . any ( String ) ,
70
122
traceId : expect . any ( String ) ,
71
123
severityNumber : 13 ,
@@ -79,7 +131,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
79
131
{
80
132
severityText : 'error' ,
81
133
body : { stringValue : 'test error' } ,
82
- attributes : [ ] ,
134
+ attributes : [
135
+ {
136
+ key : 'sentry.sdk.name' ,
137
+ value : {
138
+ stringValue : 'sentry.javascript.browser' ,
139
+ } ,
140
+ } ,
141
+ {
142
+ key : 'sentry.sdk.version' ,
143
+ value : {
144
+ stringValue : expect . any ( String ) ,
145
+ } ,
146
+ } ,
147
+ ] ,
83
148
timeUnixNano : expect . any ( String ) ,
84
149
traceId : expect . any ( String ) ,
85
150
severityNumber : 17 ,
@@ -93,7 +158,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
93
158
{
94
159
severityText : 'fatal' ,
95
160
body : { stringValue : 'test fatal' } ,
96
- attributes : [ ] ,
161
+ attributes : [
162
+ {
163
+ key : 'sentry.sdk.name' ,
164
+ value : {
165
+ stringValue : 'sentry.javascript.browser' ,
166
+ } ,
167
+ } ,
168
+ {
169
+ key : 'sentry.sdk.version' ,
170
+ value : {
171
+ stringValue : expect . any ( String ) ,
172
+ } ,
173
+ } ,
174
+ ] ,
97
175
timeUnixNano : expect . any ( String ) ,
98
176
traceId : expect . any ( String ) ,
99
177
severityNumber : 21 ,
@@ -108,6 +186,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
108
186
severityText : 'trace' ,
109
187
body : { stringValue : 'test trace stringArg false 123' } ,
110
188
attributes : [
189
+ {
190
+ key : 'sentry.sdk.name' ,
191
+ value : {
192
+ stringValue : 'sentry.javascript.browser' ,
193
+ } ,
194
+ } ,
195
+ {
196
+ key : 'sentry.sdk.version' ,
197
+ value : {
198
+ stringValue : expect . any ( String ) ,
199
+ } ,
200
+ } ,
111
201
{
112
202
key : 'sentry.message.template' ,
113
203
value : {
@@ -153,6 +243,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
153
243
severityText : 'debug' ,
154
244
body : { stringValue : 'test debug stringArg false 123' } ,
155
245
attributes : [
246
+ {
247
+ key : 'sentry.sdk.name' ,
248
+ value : {
249
+ stringValue : 'sentry.javascript.browser' ,
250
+ } ,
251
+ } ,
252
+ {
253
+ key : 'sentry.sdk.version' ,
254
+ value : {
255
+ stringValue : expect . any ( String ) ,
256
+ } ,
257
+ } ,
156
258
{
157
259
key : 'sentry.message.template' ,
158
260
value : {
@@ -198,6 +300,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
198
300
severityText : 'info' ,
199
301
body : { stringValue : 'test info stringArg false 123' } ,
200
302
attributes : [
303
+ {
304
+ key : 'sentry.sdk.name' ,
305
+ value : {
306
+ stringValue : 'sentry.javascript.browser' ,
307
+ } ,
308
+ } ,
309
+ {
310
+ key : 'sentry.sdk.version' ,
311
+ value : {
312
+ stringValue : expect . any ( String ) ,
313
+ } ,
314
+ } ,
201
315
{
202
316
key : 'sentry.message.template' ,
203
317
value : {
@@ -243,6 +357,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
243
357
severityText : 'warn' ,
244
358
body : { stringValue : 'test warn stringArg false 123' } ,
245
359
attributes : [
360
+ {
361
+ key : 'sentry.sdk.name' ,
362
+ value : {
363
+ stringValue : 'sentry.javascript.browser' ,
364
+ } ,
365
+ } ,
366
+ {
367
+ key : 'sentry.sdk.version' ,
368
+ value : {
369
+ stringValue : expect . any ( String ) ,
370
+ } ,
371
+ } ,
246
372
{
247
373
key : 'sentry.message.template' ,
248
374
value : {
@@ -288,6 +414,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
288
414
severityText : 'error' ,
289
415
body : { stringValue : 'test error stringArg false 123' } ,
290
416
attributes : [
417
+ {
418
+ key : 'sentry.sdk.name' ,
419
+ value : {
420
+ stringValue : 'sentry.javascript.browser' ,
421
+ } ,
422
+ } ,
423
+ {
424
+ key : 'sentry.sdk.version' ,
425
+ value : {
426
+ stringValue : expect . any ( String ) ,
427
+ } ,
428
+ } ,
291
429
{
292
430
key : 'sentry.message.template' ,
293
431
value : {
@@ -333,6 +471,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
333
471
severityText : 'fatal' ,
334
472
body : { stringValue : 'test fatal stringArg false 123' } ,
335
473
attributes : [
474
+ {
475
+ key : 'sentry.sdk.name' ,
476
+ value : {
477
+ stringValue : 'sentry.javascript.browser' ,
478
+ } ,
479
+ } ,
480
+ {
481
+ key : 'sentry.sdk.version' ,
482
+ value : {
483
+ stringValue : expect . any ( String ) ,
484
+ } ,
485
+ } ,
336
486
{
337
487
key : 'sentry.message.template' ,
338
488
value : {
0 commit comments