@@ -264,6 +264,15 @@ export function getDeviceContextData({
264
264
) : undefined ,
265
265
} ;
266
266
}
267
+ case DeviceContextKey . EXTERNAL_TOTAL_STORAGE : {
268
+ return {
269
+ key : ctxKey ,
270
+ subject : t ( 'External Total Storage' ) ,
271
+ value : data . external_total_storage ? (
272
+ < FileSize bytes = { data . external_total_storage } />
273
+ ) : undefined ,
274
+ } ;
275
+ }
267
276
case DeviceContextKey . SIMULATOR :
268
277
return {
269
278
key : ctxKey ,
@@ -285,6 +294,12 @@ export function getDeviceContextData({
285
294
subject : t ( 'Device Type' ) ,
286
295
value : data . device_type ,
287
296
} ;
297
+ case DeviceContextKey . DEVICE_UNIQUE_IDENTIFIER :
298
+ return {
299
+ key : ctxKey ,
300
+ subject : t ( 'Device UID' ) ,
301
+ value : data . device_unique_identifier ,
302
+ } ;
288
303
case DeviceContextKey . BRAND :
289
304
return {
290
305
key : ctxKey ,
@@ -363,7 +378,49 @@ export function getDeviceContextData({
363
378
subject : t ( 'Screen Width Pixels' ) ,
364
379
value : data . screen_width_pixels ,
365
380
} ;
366
-
381
+ case DeviceContextKey . PROCESSOR_COUNT :
382
+ return {
383
+ key : ctxKey ,
384
+ subject : t ( 'Processor Count' ) ,
385
+ value : data . processor_count ,
386
+ } ;
387
+ case DeviceContextKey . PROCESSOR_FREQUENCY :
388
+ return {
389
+ key : ctxKey ,
390
+ // https://github.com/getsentry/relay/blob/25.3.0/relay-event-schema/src/protocol/contexts/device.rs#L137
391
+ subject : t ( 'Processor Frequency (MHz)' ) ,
392
+ value : data . processor_frequency ,
393
+ } ;
394
+ case DeviceContextKey . SUPPORTS_ACCELEROMETER :
395
+ return {
396
+ key : ctxKey ,
397
+ subject : t ( 'Supports Accelerometer' ) ,
398
+ value : data . supports_accelerometer ,
399
+ } ;
400
+ case DeviceContextKey . SUPPORTS_AUDIO :
401
+ return {
402
+ key : ctxKey ,
403
+ subject : t ( 'Supports Audio' ) ,
404
+ value : data . supports_audio ,
405
+ } ;
406
+ case DeviceContextKey . SUPPORTS_GYROSCOPE :
407
+ return {
408
+ key : ctxKey ,
409
+ subject : t ( 'Supports Gyroscope' ) ,
410
+ value : data . supports_gyroscope ,
411
+ } ;
412
+ case DeviceContextKey . SUPPORTS_LOCATION_SERVICE :
413
+ return {
414
+ key : ctxKey ,
415
+ subject : t ( 'Supports Location Service' ) ,
416
+ value : data . supports_location_service ,
417
+ } ;
418
+ case DeviceContextKey . SUPPORTS_VIBRATION :
419
+ return {
420
+ key : ctxKey ,
421
+ subject : t ( 'Supports Vibration' ) ,
422
+ value : data . supports_vibration ,
423
+ } ;
367
424
default :
368
425
return {
369
426
key : ctxKey ,
0 commit comments