File tree 1 file changed +5
-5
lines changed
packages/profiling-browser/src
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ const THREAD_NAME = 'main';
19
19
// Machine properties (eval only once)
20
20
let OS_PLATFORM = '' ; // macos
21
21
let OS_PLATFORM_VERSION = '' ; // 13.2
22
- let OS_ARCH = '' ;
23
- let OS_BROWSER = '' ;
22
+ let OS_ARCH = '' ; // arm64
23
+ let OS_BROWSER = WINDOW . navigator && WINDOW . navigator . userAgent || '' ;
24
24
let OS_MODEL = '' ;
25
25
const OS_LOCALE =
26
26
( WINDOW . navigator && WINDOW . navigator . language ) || ( WINDOW . navigator && WINDOW . navigator . languages [ 0 ] ) || '' ;
@@ -251,13 +251,13 @@ export function createProfilingEventEnvelope(
251
251
const profile : Profile = {
252
252
event_id : rawProfile . profile_id ,
253
253
timestamp : new Date ( transactionStartMs ) . toISOString ( ) ,
254
- platform : 'node' , // @TODO replace with browser once backend supports it
254
+ platform : 'javascript' ,
255
255
version : '1' ,
256
256
release : event . release || '' ,
257
257
environment : event . environment || '' ,
258
258
runtime : {
259
- name : 'node' , // @TODO replace with browser once backend supports it
260
- version : '' , // @TODO replace with browser once backend supports it
259
+ name : 'javascript' ,
260
+ version : WINDOW . navigator . userAgent
261
261
} ,
262
262
os : {
263
263
name : OS_PLATFORM ,
You can’t perform that action at this time.
0 commit comments