@@ -23,7 +23,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
2323 {
2424 severityText : 'trace' ,
2525 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+ ] ,
2740 timeUnixNano : expect . any ( String ) ,
2841 traceId : expect . any ( String ) ,
2942 severityNumber : 1 ,
@@ -37,7 +50,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
3750 {
3851 severityText : 'debug' ,
3952 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+ ] ,
4167 timeUnixNano : expect . any ( String ) ,
4268 traceId : expect . any ( String ) ,
4369 severityNumber : 5 ,
@@ -51,7 +77,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
5177 {
5278 severityText : 'info' ,
5379 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+ ] ,
5594 timeUnixNano : expect . any ( String ) ,
5695 traceId : expect . any ( String ) ,
5796 severityNumber : 9 ,
@@ -65,7 +104,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
65104 {
66105 severityText : 'warn' ,
67106 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+ ] ,
69121 timeUnixNano : expect . any ( String ) ,
70122 traceId : expect . any ( String ) ,
71123 severityNumber : 13 ,
@@ -79,7 +131,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
79131 {
80132 severityText : 'error' ,
81133 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+ ] ,
83148 timeUnixNano : expect . any ( String ) ,
84149 traceId : expect . any ( String ) ,
85150 severityNumber : 17 ,
@@ -93,7 +158,20 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
93158 {
94159 severityText : 'fatal' ,
95160 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+ ] ,
97175 timeUnixNano : expect . any ( String ) ,
98176 traceId : expect . any ( String ) ,
99177 severityNumber : 21 ,
@@ -108,6 +186,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
108186 severityText : 'trace' ,
109187 body : { stringValue : 'test trace stringArg false 123' } ,
110188 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+ } ,
111201 {
112202 key : 'sentry.message.template' ,
113203 value : {
@@ -153,6 +243,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
153243 severityText : 'debug' ,
154244 body : { stringValue : 'test debug stringArg false 123' } ,
155245 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+ } ,
156258 {
157259 key : 'sentry.message.template' ,
158260 value : {
@@ -198,6 +300,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
198300 severityText : 'info' ,
199301 body : { stringValue : 'test info stringArg false 123' } ,
200302 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+ } ,
201315 {
202316 key : 'sentry.message.template' ,
203317 value : {
@@ -243,6 +357,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
243357 severityText : 'warn' ,
244358 body : { stringValue : 'test warn stringArg false 123' } ,
245359 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+ } ,
246372 {
247373 key : 'sentry.message.template' ,
248374 value : {
@@ -288,6 +414,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
288414 severityText : 'error' ,
289415 body : { stringValue : 'test error stringArg false 123' } ,
290416 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+ } ,
291429 {
292430 key : 'sentry.message.template' ,
293431 value : {
@@ -333,6 +471,18 @@ sentryTest('should capture all logging methods', async ({ getLocalTestUrl, page
333471 severityText : 'fatal' ,
334472 body : { stringValue : 'test fatal stringArg false 123' } ,
335473 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+ } ,
336486 {
337487 key : 'sentry.message.template' ,
338488 value : {
0 commit comments