2026-07-29 08:29:29 +00:00
// Module ID: 1152
// Function ID: 1153
// Name: setSpanDurationAsMeasurementOnTransactionEvent
// Dependencies: [817, 1001, 1153, 1122, 1155, 1156, 1157, 1158, 1159, 1160]
// Module 1152 (setSpanDurationAsMeasurementOnTransactionEvent)
2026-08-24 06:08:38 +00:00
import registerSpanErrorInstrumentation from "registerSpanErrorInstrumentation" /* 817 */ ;
require = arg1 ;
2026-07-29 08:29:29 +00:00
const dependencyMap = arg6 ;
function setSpanDurationAsMeasurementOnTransactionEvent ( measurements , arg1 , timestamp ) {
if ( timestamp . timestamp ) {
if ( timestamp . start _timestamp ) {
measurements . measurements = measurements . measurements || { } ;
const obj = { value : null , unit : "millisecond" } ;
obj [ 0 ] = 1000 * ( timestamp . timestamp - timestamp . start _timestamp ) ;
measurements . measurements [ arg1 ] = obj ;
const tmp3 = measurements . measurements || { } ;
}
}
2026-08-24 06:08:38 +00:00
const debug = registerSpanErrorInstrumentation . debug ;
2026-07-29 08:29:29 +00:00
debug . warn ( "Span is missing start or end timestamp. Cam not set measurement on transaction event." ) ;
}
let fn = this ;
if ( this ) {
fn = this . _ _awaiter ;
}
if ( ! fn ) {
fn = ( arg0 , arg1 , arg2 , arg3 ) => {
2026-08-24 06:08:38 +00:00
closure _0 = arg0 ;
closure _1 = arg1 ;
2026-07-29 08:29:29 +00:00
let _Promise = arg2 ;
2026-08-24 06:08:38 +00:00
closure _3 = arg3 ;
2026-07-29 08:29:29 +00:00
if ( ! arg2 ) {
_Promise = Promise ;
}
_Promise = new _Promise ( ( arg0 , arg1 ) => {
2026-08-24 06:08:38 +00:00
closure _0 = arg0 ;
closure _1 = arg1 ;
2026-07-29 08:29:29 +00:00
function fulfilled ( arg0 ) {
try {
step ( iter . next ( arg0 ) ) ;
} catch ( tmp5 ) {
callback2 ( tmp5 ) ;
}
}
function rejected ( arg0 ) {
try {
step ( iter . throw ( arg0 ) ) ;
} catch ( tmp5 ) {
callback2 ( tmp5 ) ;
}
}
let iter = rejected ;
function step ( done ) {
if ( done . done ) {
callback ( done . value ) ;
} else {
let tmp = done . value ;
callback = tmp ;
if ( ! ( tmp instanceof fulfilled ) ) {
tmp = new tmp ( ( arg0 ) => {
arg0 ( closure _0 ) ;
} ) ;
}
tmp . then ( fulfilled , iter ) ;
}
}
let items = closure _1 ;
if ( ! closure _1 ) {
items = [ ] ;
}
iter = iter . apply ( closure _0 , items ) ;
const iter2 = iter . next ( ) ;
const value = iter2 . value ;
if ( iter2 . done ) {
arg0 ( value ) ;
} else {
closure _0 = value ;
let tmp3 = value ;
if ( ! ( value instanceof fulfilled ) ) {
tmp3 = new tmp3 ( ( arg0 ) => {
arg0 ( closure _0 ) ;
} ) ;
}
tmp3 . then ( fulfilled , rejected ) ;
}
} ) ;
return _Promise ;
} ;
}
const AppStart = "AppStart" ;
let c4 ;
let c5 = false ;
let c6 ;
let c7 = false ;
function _setAppStartEndData ( arg0 ) {
if ( closure _4 ) {
2026-08-24 06:08:38 +00:00
const debug = registerSpanErrorInstrumentation . debug ;
2026-07-29 08:29:29 +00:00
debug . warn ( "Overwriting already set app start end data." ) ;
}
closure _4 = arg0 ;
}
arg5 . captureAppStart = function captureAppStart ( ) {
2026-08-24 06:08:38 +00:00
c0 = true ;
2026-07-29 08:29:29 +00:00
return fn ( undefined , undefined , undefined , function * ( ) {
if ( c5 === 2 ) {
c5 = 3 ;
HermesBuiltin . throwTypeError ( ) ;
} else if ( tmp6 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
let obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-25 06:04:03 +00:00
return { value : "HermesInternal" , done : "HermesInternal" } ;
2026-07-29 08:29:29 +00:00
}
} else {
try {
c5 = 2 ;
if ( 0 === c4 ) {
if ( arg0 === 1 ) {
c5 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c5 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-24 06:08:38 +00:00
closure _1 = tmp3 ;
2026-07-29 08:29:29 +00:00
let client = tmp7 ;
client = undefined ;
closure _1 = undefined ;
2026-08-24 06:08:38 +00:00
closure _2 = undefined ;
client = closure _1 _0 ( integrationByName [ 0 ] ) . getClient ( ) ;
2026-07-29 08:29:29 +00:00
if ( client ) {
2026-08-24 06:08:38 +00:00
closure _5 = closure _1 _0 ;
let obj2 = closure _1 _0 ( integrationByName [ 0 ] ) ;
2026-07-29 08:29:29 +00:00
closure _1 = 1000 * obj2 . timestampInSeconds ( ) ;
closure _2 = null ;
2026-08-24 06:08:38 +00:00
if ( closure _1 _0 ( integrationByName [ 1 ] ) . NATIVE . enableNative ) {
c3 = 1 ;
const NATIVE = closure _1 _0 ( integrationByName [ 1 ] ) . NATIVE ;
2026-07-29 08:29:29 +00:00
c4 = 2 ;
c5 = 1 ;
2026-08-24 06:08:38 +00:00
obj1 = { value : null , done : false } ;
2026-07-29 08:29:29 +00:00
obj1 [ 0 ] = NATIVE . fetchNativeFrames ( ) ;
return obj1 ;
}
} else {
2026-08-24 06:08:38 +00:00
const debug3 = closure _1 _0 ( integrationByName [ 0 ] ) . debug ;
2026-07-29 08:29:29 +00:00
debug3 . warn ( "[AppStart] Could not capture App Start, missing client." ) ;
c5 = 3 ;
2026-08-25 06:04:03 +00:00
return { value : "HermesInternal" , done : "HermesInternal" } ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
const obj9 = closure _1 _0 ( integrationByName [ 0 ] ) ;
2026-07-29 08:29:29 +00:00
}
} else if ( 1 === tmp7 ) {
c3 = 0 ;
c3 = closure _2 ;
2026-08-24 06:08:38 +00:00
const debug2 = closure _1 _0 ( integrationByName [ 0 ] ) . debug ;
2026-07-29 08:29:29 +00:00
debug2 . log ( "[AppStart] Failed to capture end frames for app start." , c3 ) ;
} else if ( 2 === tmp7 ) {
if ( arg0 === 1 ) {
c5 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 0 ;
c5 = 3 ;
obj2 = { value : null , done : true } ;
obj2 [ 0 ] = arg1 ;
return obj2 ;
} else {
closure _2 = arg1 ;
2026-08-24 06:08:38 +00:00
const debug = closure _1 _0 ( integrationByName [ 0 ] ) . debug ;
2026-07-29 08:29:29 +00:00
debug . log ( "[AppStart] Captured end frames for app start." , closure _2 ) ;
c3 = 0 ;
}
} else if ( arg0 === 1 ) {
c5 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c5 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
}
const obj3 = { timestampMs : null , endFrames : null } ;
obj3 [ 0 ] = closure _1 ;
obj3 [ 1 ] = closure _2 ;
2026-08-24 06:08:38 +00:00
closure _1 _8 ( obj3 ) ;
integrationByName = client . getIntegrationByName ( c3 ) ;
2026-07-29 08:29:29 +00:00
let result ;
if ( null !== integrationByName ) {
2026-08-24 06:08:38 +00:00
if ( undefined !== integrationByName ) {
result = integrationByName . captureStandaloneAppStart ( ) ;
2026-07-29 08:29:29 +00:00
}
}
c4 = 3 ;
c5 = 1 ;
const obj4 = { value : null , done : false } ;
obj4 [ 0 ] = result ;
return obj4 ;
} catch ( tmp45 ) {
closure _2 = tmp45 ;
if ( tmp4 === c3 ) {
c5 = tmp2 ;
throw tmp45 ;
} else {
c4 = tmp ;
}
}
}
} ) ;
} ;
arg5 . _captureAppStart = function _captureAppStart ( isManual ) {
isManual = isManual . isManual ;
2026-08-24 06:08:38 +00:00
c1 = undefined ;
2026-07-29 08:29:29 +00:00
return fn ( this , undefined , undefined , function * ( ) {
if ( c5 === 2 ) {
c5 = 3 ;
HermesBuiltin . throwTypeError ( ) ;
} else if ( tmp6 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
let obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-25 06:04:03 +00:00
return { value : "HermesInternal" , done : "HermesInternal" } ;
2026-07-29 08:29:29 +00:00
}
} else {
try {
c5 = 2 ;
if ( 0 === c4 ) {
if ( arg0 === 1 ) {
c5 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c5 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-24 06:08:38 +00:00
closure _1 = tmp3 ;
2026-07-29 08:29:29 +00:00
let client = tmp7 ;
client = undefined ;
closure _1 = undefined ;
2026-08-24 06:08:38 +00:00
closure _2 = undefined ;
client = closure _1 _0 ( integrationByName [ 0 ] ) . getClient ( ) ;
2026-07-29 08:29:29 +00:00
if ( client ) {
2026-08-24 06:08:38 +00:00
closure _5 = closure _1 _0 ;
let obj2 = closure _1 _0 ( integrationByName [ 0 ] ) ;
2026-07-29 08:29:29 +00:00
closure _1 = 1000 * obj2 . timestampInSeconds ( ) ;
closure _2 = null ;
2026-08-24 06:08:38 +00:00
if ( closure _1 _0 ( integrationByName [ 1 ] ) . NATIVE . enableNative ) {
c3 = 1 ;
const NATIVE = closure _1 _0 ( integrationByName [ 1 ] ) . NATIVE ;
2026-07-29 08:29:29 +00:00
c4 = 2 ;
c5 = 1 ;
2026-08-24 06:08:38 +00:00
obj1 = { value : null , done : false } ;
2026-07-29 08:29:29 +00:00
obj1 [ 0 ] = NATIVE . fetchNativeFrames ( ) ;
return obj1 ;
}
} else {
2026-08-24 06:08:38 +00:00
const debug3 = closure _1 _0 ( integrationByName [ 0 ] ) . debug ;
2026-07-29 08:29:29 +00:00
debug3 . warn ( "[AppStart] Could not capture App Start, missing client." ) ;
c5 = 3 ;
2026-08-25 06:04:03 +00:00
return { value : "HermesInternal" , done : "HermesInternal" } ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
const obj9 = closure _1 _0 ( integrationByName [ 0 ] ) ;
2026-07-29 08:29:29 +00:00
}
} else if ( 1 === tmp7 ) {
c3 = 0 ;
c3 = closure _2 ;
2026-08-24 06:08:38 +00:00
const debug2 = closure _1 _0 ( integrationByName [ 0 ] ) . debug ;
2026-07-29 08:29:29 +00:00
debug2 . log ( "[AppStart] Failed to capture end frames for app start." , c3 ) ;
} else if ( 2 === tmp7 ) {
if ( arg0 === 1 ) {
c5 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 0 ;
c5 = 3 ;
obj2 = { value : null , done : true } ;
obj2 [ 0 ] = arg1 ;
return obj2 ;
} else {
closure _2 = arg1 ;
2026-08-24 06:08:38 +00:00
const debug = closure _1 _0 ( integrationByName [ 0 ] ) . debug ;
2026-07-29 08:29:29 +00:00
debug . log ( "[AppStart] Captured end frames for app start." , closure _2 ) ;
c3 = 0 ;
}
} else if ( arg0 === 1 ) {
c5 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c5 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
}
const obj3 = { timestampMs : null , endFrames : null } ;
obj3 [ 0 ] = closure _1 ;
obj3 [ 1 ] = closure _2 ;
2026-08-24 06:08:38 +00:00
closure _1 _8 ( obj3 ) ;
integrationByName = client . getIntegrationByName ( c3 ) ;
2026-07-29 08:29:29 +00:00
let result ;
if ( null !== integrationByName ) {
2026-08-24 06:08:38 +00:00
if ( undefined !== integrationByName ) {
result = integrationByName . captureStandaloneAppStart ( ) ;
2026-07-29 08:29:29 +00:00
}
}
c4 = 3 ;
c5 = 1 ;
const obj4 = { value : null , done : false } ;
obj4 [ 0 ] = result ;
return obj4 ;
} catch ( tmp45 ) {
closure _2 = tmp45 ;
if ( tmp4 === c3 ) {
c5 = tmp2 ;
throw tmp45 ;
} else {
c4 = tmp ;
}
}
}
} ) ;
} ;
arg5 . setRootComponentCreationTimestampMs = function setRootComponentCreationTimestampMs ( arg0 ) {
let timestampMs ;
if ( null != _undefined ) {
timestampMs = _undefined . timestampMs ;
}
if ( timestampMs ) {
2026-08-24 06:08:38 +00:00
const debug = registerSpanErrorInstrumentation . debug ;
2026-07-29 08:29:29 +00:00
debug . warn ( "Setting Root component creation timestamp after app start end is set." ) ;
}
if ( closure _6 ) {
2026-08-24 06:08:38 +00:00
const debug2 = registerSpanErrorInstrumentation . debug ;
2026-07-29 08:29:29 +00:00
debug2 . warn ( "Overwriting already set root component creation timestamp." ) ;
}
closure _6 = arg0 ;
2026-08-24 06:08:38 +00:00
c7 = true ;
2026-07-29 08:29:29 +00:00
} ;
arg5 . _setRootComponentCreationTimestampMs = function _setRootComponentCreationTimestampMs ( arg0 ) {
let timestampMs ;
if ( null != _undefined ) {
timestampMs = _undefined . timestampMs ;
}
if ( timestampMs ) {
2026-08-24 06:08:38 +00:00
const debug = registerSpanErrorInstrumentation . debug ;
2026-07-29 08:29:29 +00:00
debug . warn ( "Setting Root component creation timestamp after app start end is set." ) ;
}
if ( closure _6 ) {
2026-08-24 06:08:38 +00:00
const debug2 = registerSpanErrorInstrumentation . debug ;
2026-07-29 08:29:29 +00:00
debug2 . warn ( "Overwriting already set root component creation timestamp." ) ;
}
closure _6 = arg0 ;
2026-08-24 06:08:38 +00:00
c7 = false ;
2026-07-29 08:29:29 +00:00
} ;
arg5 . _setAppStartEndData = _setAppStartEndData ;
arg5 . _clearRootComponentCreationTimestampMs = function _clearRootComponentCreationTimestampMs ( ) {
2026-08-24 06:08:38 +00:00
c6 = undefined ;
2026-07-29 08:29:29 +00:00
} ;
arg5 . appStartIntegration = ( ) => {
let obj = arg0 ;
if ( arg0 === undefined ) {
obj = { } ;
}
let flag = obj . standalone ;
if ( flag === undefined ) {
flag = false ;
}
function attachAppStartToTransactionEvent ( arg0 ) {
2026-08-24 06:08:38 +00:00
closure _0 = arg0 ;
return _true ( undefined , undefined , undefined , ( ) => {
c3 = 0 ;
let SPAN _ORIGIN _AUTO _APP _START = 0 ;
return ( function * ( ) {
if ( c4 === 2 ) {
c4 = 3 ;
let throwTypeErrorResult = HermesBuiltin . throwTypeError ( ) ;
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = arg1 ;
throwTypeErrorResult = arg0 ;
throwTypeErrorResult = tmp4 ;
if ( tmp5 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
let obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-25 06:04:03 +00:00
return { value : "HermesInternal" , done : "HermesInternal" } ;
2026-08-24 06:08:38 +00:00
}
} else {
try {
c4 = 2 ;
let num2 = 0 ;
if ( 0 === c3 ) {
if ( arg0 === 1 ) {
c4 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c4 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
c2 = tmp2 ;
let app _start _timestamp _ms = tmp3 ;
let lib ;
app _start _timestamp _ms = undefined ;
c2 = undefined ;
c3 = undefined ;
c4 = undefined ;
c5 = undefined ;
c6 = undefined ;
c7 = undefined ;
c8 = undefined ;
c9 = undefined ;
c10 = undefined ;
closure _11 = undefined ;
c12 = undefined ;
c13 = undefined ;
c14 = undefined ;
c15 = undefined ;
c16 = undefined ;
c17 = undefined ;
throwTypeErrorResult = c3 ;
if ( ! c3 ) {
throwTypeErrorResult = closure _1 _0 ;
const contexts = closure _1 _0 . contexts ;
throwTypeErrorResult = null ;
throwTypeErrorResult = undefined ;
if ( null !== contexts ) {
if ( undefined !== contexts ) {
throwTypeErrorResult = contexts . trace ;
}
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
if ( throwTypeErrorResult ) {
throwTypeErrorResult = closure _1 _0 ;
if ( ! closure _1 _0 ) {
if ( closure _5 ) {
throwTypeErrorResult = closure _1 _0 ;
if ( throwTypeErrorResult !== closure _1 _0 . contexts . trace . span _id ) {
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _2 _1 ;
const debug13 = lib ( closure _2 _1 [ 0 ] ) . debug ;
throwTypeErrorResult = debug13 . warn ( "[AppStart] First started active root span id does not match the transaction event span id. Can not attached app start." ) ;
c4 = 3 ;
obj1 = { value : null , done : true } ;
obj1 [ 0 ] = undefined ;
return obj1 ;
}
} else {
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = lib ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure _2 _1 ;
const debug12 = lib ( closure _2 _1 [ 0 ] ) . debug ;
throwTypeErrorResult = debug12 . warn ( "[AppStart] No first started active root span id recorded. Can not attach app start." ) ;
2026-07-29 08:29:29 +00:00
c4 = 3 ;
2026-08-24 06:08:38 +00:00
let obj2 = { value : null , done : true } ;
obj2 [ 0 ] = undefined ;
return obj2 ;
2026-07-29 08:29:29 +00:00
}
}
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _2 _1 ;
const NATIVE = lib ( closure _2 _1 [ 1 ] ) . NATIVE ;
c3 = 1 ;
c4 = 1 ;
let obj3 = { value : null , done : false } ;
obj3 [ 0 ] = NATIVE . fetchNativeAppStart ( ) ;
return obj3 ;
} else {
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _2 _1 ;
const debug11 = lib ( closure _2 _1 [ 0 ] ) . debug ;
throwTypeErrorResult = debug11 . warn ( "[AppStart] Transaction event is missing trace context. Can not attach app start." ) ;
2026-07-29 08:29:29 +00:00
}
}
2026-08-24 06:08:38 +00:00
c4 = 3 ;
2026-07-29 08:29:29 +00:00
}
} else {
2026-08-24 06:08:38 +00:00
let num6 = 1 ;
if ( arg0 === 1 ) {
c4 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c4 = 3 ;
const obj4 = { value : null , done : true } ;
obj4 [ 0 ] = arg1 ;
return obj4 ;
} else {
throwTypeErrorResult = app _start _timestamp _ms ;
lib = arg1 ;
throwTypeErrorResult = lib ;
if ( ! lib ) {
let debug = lib ( closure _2 _1 [ 0 ] ) . debug ;
debug . warn ( "[AppStart] Failed to retrieve the app start metrics from the native layer." ) ;
}
2026-07-29 08:29:29 +00:00
}
}
2026-08-24 06:08:38 +00:00
if ( lib . has _fetched ) {
throwTypeErrorResult = c2 ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _2 _1 ;
const debug10 = lib ( closure _2 _1 [ 0 ] ) . debug ;
throwTypeErrorResult = debug10 . warn ( "[AppStart] Measured app start metrics were already reported from the native layer." ) ;
} else {
app _start _timestamp _ms = lib . app _start _timestamp _ms ;
if ( app _start _timestamp _ms ) {
timestampMs = undefined ;
if ( null != closure _2 _4 ) {
timestampMs = closure _2 _4 . timestampMs ;
}
if ( ! timestampMs ) {
obj = lib ( closure _2 _1 [ 5 ] ) ;
timestampMs = obj . getBundleStartTimestampMs ( ) ;
}
if ( timestampMs ) {
if ( lib . start _timestamp ) {
if ( closure _2 _1 >= 1000 * lib . start _timestamp - 60000 ) {
closure _3 = timestampMs - closure _2 _1 ;
if ( closure _3 >= 60000 ) {
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c2 ;
throwTypeErrorResult = lib ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure _2 _1 ;
const debug9 = lib ( closure _2 _1 [ 0 ] ) . debug ;
throwTypeErrorResult = debug9 . warn ( "[AppStart] App start duration is over a minute long, not adding app start span." ) ;
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = app _start _timestamp _ms ;
throwTypeErrorResult = closure _3 ;
if ( closure _3 < num2 ) {
throwTypeErrorResult = c2 ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _2 _1 ;
const debug8 = lib ( closure _2 _1 [ 0 ] ) . debug ;
throwTypeErrorResult = debug8 . warn ( "[AppStart] Last recorded app start end timestamp is before the app start timestamp." , "This is usually caused by missing `Sentry.wrap(RootComponent)` call." ) ;
2026-07-29 08:29:29 +00:00
} else {
throwTypeErrorResult = c2 ;
2026-08-24 06:08:38 +00:00
c3 = true ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = lib ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = lib ;
let data = lib . contexts . trace . data ;
if ( ! data ) {
data = { } ;
}
lib . contexts . trace . data = data ;
closure _1 _0 . contexts . trace . data [ lib ( closure _2 _1 [ 6 ] ) . SEMANTIC _ATTRIBUTE _SENTRY _OP ] = lib ( closure _2 _1 [ 4 ] ) . UI _LOAD ;
closure _1 _0 . contexts . trace . op = lib ( closure _2 _1 [ 4 ] ) . UI _LOAD ;
const tmp59 = lib ( closure _2 _1 [ 7 ] ) ;
if ( closure _2 _5 ) {
SPAN _ORIGIN _AUTO _APP _START = tmp59 . SPAN _ORIGIN _MANUAL _APP _START ;
} else {
SPAN _ORIGIN _AUTO _APP _START = tmp59 . SPAN _ORIGIN _AUTO _APP _START ;
}
lib . contexts . trace . data [ lib ( closure _2 _1 [ 0 ] ) . SEMANTIC _ATTRIBUTE _SENTRY _ORIGIN ] = SPAN _ORIGIN _AUTO _APP _START ;
lib . contexts . trace . origin = SPAN _ORIGIN _AUTO _APP _START ;
closure _5 = closure _1 _1 / 1000 ;
lib . start _timestamp = closure _5 ;
spans = lib . spans ;
if ( ! spans ) {
spans = [ ] ;
}
lib . spans = spans ;
spans = closure _1 _0 . spans ;
closure _7 = spans . find ( ( op ) => "ui.load.initial_display" === op . op ) ;
if ( closure _7 ) {
closure _7 . start _timestamp = closure _2 _5 ;
callback ( closure _1 _0 , "time_to_initial_display" , closure _7 ) ;
}
closure _8 = spans . find ( ( op ) => "ui.load.full_display" === op . op ) ;
if ( closure _8 ) {
closure _8 . start _timestamp = closure _2 _5 ;
callback ( closure _1 _0 , "time_to_full_display" , closure _8 ) ;
}
callback = timestampMs / 1000 ;
throwTypeErrorResult = lib ;
let timestamp = lib . timestamp ;
if ( timestamp ) {
throwTypeErrorResult = app _start _timestamp _ms ;
throwTypeErrorResult = c2 ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _1 _9 ;
timestamp = lib . timestamp < closure _1 _9 ;
}
if ( timestamp ) {
throwTypeErrorResult = app _start _timestamp _ms ;
throwTypeErrorResult = c2 ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _2 _1 ;
const debug5 = lib ( closure _2 _1 [ 0 ] ) . debug ;
throwTypeErrorResult = debug5 . log ( "[AppStart] Transaction event timestamp is before app start end. Adjusting transaction event timestamp." ) ;
throwTypeErrorResult = closure _1 _0 ;
throwTypeErrorResult = callback ;
closure _1 _0 . timestamp = callback ;
}
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = app _start _timestamp _ms ;
throwTypeErrorResult = lib ;
2026-08-24 06:08:38 +00:00
if ( "cold" === lib . type ) {
throwTypeErrorResult = c2 ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _2 _1 ;
APP _START _WARM = lib ( closure _2 _1 [ 4 ] ) . APP _START _COLD ;
} else {
throwTypeErrorResult = c2 ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _2 _1 ;
APP _START _WARM = lib ( closure _2 _1 [ 4 ] ) . APP _START _WARM ;
}
throwTypeErrorResult = app _start _timestamp _ms ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c2 ;
throwTypeErrorResult = lib ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure _2 _1 ;
obj2 = lib ( closure _2 _1 [ 5 ] ) ;
let obj5 = { op : null , description : null , start _timestamp : null , timestamp : null , trace _id : null , parent _span _id : null , origin : null } ;
throwTypeErrorResult = APP _START _WARM ;
obj5 [ 0 ] = APP _START _WARM ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = lib ;
2026-08-24 06:08:38 +00:00
let str9 = "Warm Start" ;
if ( "cold" === lib . type ) {
str9 = "Cold Start" ;
}
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = app _start _timestamp _ms ;
throwTypeErrorResult = c2 ;
2026-08-24 06:08:38 +00:00
obj5 [ 1 ] = str9 ;
throwTypeErrorResult = c5 ;
obj5 [ 2 ] = c5 ;
throwTypeErrorResult = c9 ;
obj5 [ 3 ] = c9 ;
throwTypeErrorResult = lib ;
obj5 [ 4 ] = lib . contexts . trace . trace _id ;
throwTypeErrorResult = lib ;
obj5 [ 5 ] = lib . contexts . trace . span _id ;
throwTypeErrorResult = c4 ;
obj5 [ 6 ] = c4 ;
closure _11 = obj2 . createSpanJSON ( obj5 ) ;
throwTypeErrorResult = closure _2 _4 ;
throwTypeErrorResult = undefined ;
if ( null != closure _2 _4 ) {
throwTypeErrorResult = c2 ;
throwTypeErrorResult = closure _2 _4 ;
throwTypeErrorResult = closure _2 _4 . endFrames ;
}
if ( throwTypeErrorResult ) {
throwTypeErrorResult = app _start _timestamp _ms ;
throwTypeErrorResult = c2 ;
throwTypeErrorResult = closure _2 _11 ;
throwTypeErrorResult = closure _2 _4 ;
throwTypeErrorResult = ( function attachFrameDataToSpan ( closure _2 _11 , endFrames ) {
if ( endFrames . totalFrames <= 0 ) {
if ( endFrames . slowFrames <= 0 ) {
if ( endFrames . totalFrames <= 0 ) {
const debug2 = callback ( app _start _timestamp _ms [ 0 ] ) . debug ;
const _HermesInternal = HermesInternal ;
debug2 . warn ( "[AppStart] Detected zero slow or frozen frames. Not adding measurements to spanId (" + closure _2 _11 . span _id + ")." ) ;
}
2026-07-29 08:29:29 +00:00
}
}
2026-08-24 06:08:38 +00:00
closure _2 _11 . data = closure _2 _11 . data || { } ;
( { totalFrames : closure _2 _11 . data [ "frames.total" ] , slowFrames : closure _2 _11 . data [ "frames.slow" ] , frozenFrames : closure _2 _11 . data [ "frames.frozen" ] } = endFrames ) ;
const debug = callback ( app _start _timestamp _ms [ 0 ] ) . debug ;
obj = { spanId : closure _2 _11 . span _id , frameData : obj } ;
obj = { total : endFrames . totalFrames , slow : endFrames . slowFrames , frozen : endFrames . frozenFrames } ;
debug . log ( "[AppStart] Attached frame data to span." , obj ) ;
} ) ( closure _2 _11 , closure _2 _4 . endFrames ) ;
}
throwTypeErrorResult = app _start _timestamp _ms ;
throwTypeErrorResult = c2 ;
throwTypeErrorResult = closure _1 _11 ;
throwTypeErrorResult = spans ;
closure _14 = ( function createJSExecutionStartSpan ( closure _1 _11 , spans ) {
let obj = callback ( app _start _timestamp _ms [ 5 ] ) ;
const bundleStartTimestampMs = obj . getBundleStartTimestampMs ( ) ;
if ( bundleStartTimestampMs ) {
const result = bundleStartTimestampMs / 1000 ;
if ( result < closure _1 _11 . start _timestamp ) {
const debug2 = tmp ( tmp2 [ 0 ] ) . debug ;
debug2 . warn ( "Bundle start timestamp is before the app start span start timestamp. Skipping JS execution span." ) ;
} else if ( spans ) {
let tmpResult = tmp ( tmp2 [ 5 ] ) ;
obj = { description : "JS Bundle Execution Before React Root" , start _timestamp : null , timestamp : null , origin : null } ;
obj [ 1 ] = result ;
obj [ 2 ] = spans / 1000 ;
tmpResult = tmp ( tmp2 [ 7 ] ) ;
obj [ 3 ] = c7 ? tmpResult . SPAN _ORIGIN _MANUAL _APP _START : tmpResult . SPAN _ORIGIN _AUTO _APP _START ;
return tmpResult . createChildSpanJSON ( closure _1 _11 , obj ) ;
} else {
const debug = tmp ( tmp2 [ 0 ] ) . debug ;
debug . warn ( "Missing the root component first constructor call timestamp." ) ;
obj = { description : "JS Bundle Execution Start" , start _timestamp : null , timestamp : null , origin : null } ;
obj [ 1 ] = result ;
obj [ 2 ] = result ;
obj [ 3 ] = tmp ( tmp2 [ 7 ] ) . SPAN _ORIGIN _AUTO _APP _START ;
return tmp ( tmp2 [ 5 ] ) . createChildSpanJSON ( closure _1 _11 , obj ) ;
}
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
} ) ( closure _1 _11 , spans ) ;
throwTypeErrorResult = closure _1 _11 ;
items = [ closure _1 _11 ] ;
lib = num6 ;
throwTypeErrorResult = closure _14 ;
if ( closure _14 ) {
throwTypeErrorResult = app _start _timestamp _ms ;
throwTypeErrorResult = closure _14 ;
const items1 = [ closure _14 ] ;
let items2 = items1 ;
} else {
items2 = [ ] ;
2026-07-29 08:29:29 +00:00
}
throwTypeErrorResult = app _start _timestamp _ms ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = c2 ;
throwTypeErrorResult = items ;
throwTypeErrorResult = items2 ;
throwTypeErrorResult = num6 ;
lib = HermesBuiltin . arraySpread ( items2 , num6 ) ;
throwTypeErrorResult = closure _1 _11 ;
closure _12 = closure _1 _11 ;
throwTypeErrorResult = closure _1 _0 ;
spans = closure _1 _0 . spans ;
throwTypeErrorResult = spans ;
const found = spans . filter ( ( start _timestamp _ms ) => start _timestamp _ms . start _timestamp _ms / 1000 >= _undefined . start _timestamp ) ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = items ;
lib = HermesBuiltin . arraySpread ( found . map ( ( description ) => {
let start _timestamp _ms = description ;
if ( "UIKit init" === description . description ) {
let obj = callback ( app _start _timestamp _ms [ 9 ] ) ;
obj1 = callback ( app _start _timestamp _ms [ 5 ] ) ;
let bundleStartTimestampMs = obj1 . getBundleStartTimestampMs ( ) ;
if ( ! bundleStartTimestampMs ) {
obj = { description : "UIKit Init" , start _timestamp : null , timestamp : null , origin : null } ;
obj [ 1 ] = start _timestamp _ms . start _timestamp _ms / 1000 ;
obj [ 2 ] = start _timestamp _ms . end _timestamp _ms / 1000 ;
obj [ 3 ] = callback ( app _start _timestamp _ms [ 7 ] ) . SPAN _ORIGIN _AUTO _APP _START ;
let childSpanJSON = callback ( app _start _timestamp _ms [ 5 ] ) . createChildSpanJSON ( tmp3 , obj ) ;
obj . setMainThreadInfo ( childSpanJSON ) ;
const obj3 = callback ( app _start _timestamp _ms [ 5 ] ) ;
}
obj = { description : "UIKit Init to JS Exec Start" , start _timestamp : null , timestamp : null , origin : null } ;
start _timestamp _ms = start _timestamp _ms . start _timestamp _ms ;
obj [ 1 ] = start _timestamp _ms / 1000 ;
obj [ 2 ] = bundleStartTimestampMs / 1000 ;
bundleStartTimestampMs = callback ;
2026-07-29 08:29:29 +00:00
obj [ 3 ] = callback ( app _start _timestamp _ms [ 7 ] ) . SPAN _ORIGIN _AUTO _APP _START ;
2026-08-24 06:08:38 +00:00
childSpanJSON = callback ( app _start _timestamp _ms [ 5 ] ) . createChildSpanJSON ( tmp3 , obj ) ;
const obj5 = callback ( app _start _timestamp _ms [ 5 ] ) ;
} else {
const obj7 = callback ( app _start _timestamp _ms [ 9 ] ) ;
obj1 = { description : null , start _timestamp : null , timestamp : null , origin : null } ;
obj1 [ 0 ] = start _timestamp _ms . description ;
obj1 [ 1 ] = start _timestamp _ms . start _timestamp _ms / 1000 ;
obj1 [ 2 ] = start _timestamp _ms . end _timestamp _ms / 1000 ;
obj1 [ 3 ] = callback ( app _start _timestamp _ms [ 7 ] ) . SPAN _ORIGIN _AUTO _APP _START ;
return obj7 . setMainThreadInfo ( callback ( app _start _timestamp _ms [ 5 ] ) . createChildSpanJSON ( c12 , obj1 ) ) ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
} ) , lib ) ;
throwTypeErrorResult = closure _1 _6 ;
const push = closure _1 _6 . push ;
throwTypeErrorResult = items ;
const items3 = [ ] ;
throwTypeErrorResult = items3 ;
throwTypeErrorResult = HermesBuiltin . arraySpread ( items , 0 ) ;
throwTypeErrorResult = push ;
throwTypeErrorResult = items3 ;
throwTypeErrorResult = closure _1 _6 ;
throwTypeErrorResult = HermesBuiltin . apply ( items3 , closure _1 _6 ) ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _2 _1 ;
const debug6 = lib ( closure _2 _1 [ 0 ] ) . debug ;
throwTypeErrorResult = globalThis ;
num2 = JSON ;
throwTypeErrorResult = items ;
throwTypeErrorResult = debug6 . log ( "[AppStart] Added app start spans to transaction event." , JSON . stringify ( items , undefined , 2 ) ) ;
throwTypeErrorResult = closure _1 _0 ;
if ( "cold" === closure _1 _0 . type ) {
throwTypeErrorResult = c2 ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _2 _1 ;
APP _START _WARM2 = lib ( closure _2 _1 [ 8 ] ) . APP _START _COLD ;
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = c2 ;
throwTypeErrorResult = lib ;
throwTypeErrorResult = closure _2 _1 ;
APP _START _WARM2 = lib ( closure _2 _1 [ 8 ] ) . APP _START _WARM ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = app _start _timestamp _ms ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c2 ;
2026-08-24 06:08:38 +00:00
obj6 = { value : null , unit : "millisecond" } ;
throwTypeErrorResult = closure _3 ;
obj6 [ 0 ] = closure _3 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = lib ;
2026-08-24 06:08:38 +00:00
let measurements = lib . measurements ;
throwTypeErrorResult = lib ;
if ( ! measurements ) {
measurements = { } ;
}
throwTypeErrorResult = app _start _timestamp _ms ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = c2 ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult . measurements = measurements ;
throwTypeErrorResult = closure _1 _0 ;
num6 = closure _1 _0 . measurements ;
throwTypeErrorResult = APP _START _WARM2 ;
throwTypeErrorResult = obj6 ;
num6 [ APP _START _WARM2 ] = obj6 ;
2026-07-29 08:29:29 +00:00
throwTypeErrorResult = lib ;
2026-08-24 06:08:38 +00:00
throwTypeErrorResult = closure _2 _1 ;
const debug7 = lib ( closure _2 _1 [ 0 ] ) . debug ;
const _JSON = JSON ;
throwTypeErrorResult = obj6 ;
throwTypeErrorResult = debug7 . log ( "[AppStart] Added app start measurement to transaction event." , JSON . stringify ( obj6 , undefined , 2 ) ) ;
const tmp71 = lib ;
2026-07-29 08:29:29 +00:00
}
}
}
}
2026-08-24 06:08:38 +00:00
const debug4 = lib ( closure _2 _1 [ 0 ] ) . debug ;
debug4 . warn ( "[AppStart] App start timestamp is too far in the past to be used for app start span." ) ;
} else {
const debug3 = lib ( closure _2 _1 [ 0 ] ) . debug ;
debug3 . warn ( "[AppStart] Javascript failed to record app start end. `_setAppStartEndData` was not called nor could the bundle start be found." ) ;
2026-07-29 08:29:29 +00:00
}
} else {
2026-08-24 06:08:38 +00:00
let debug2 = lib ( closure _2 _1 [ 0 ] ) . debug ;
debug2 . warn ( "[AppStart] App start timestamp could not be loaded from the native layer." ) ;
2026-07-29 08:29:29 +00:00
}
}
2026-08-24 06:08:38 +00:00
} catch ( throwTypeErrorResult ) {
c4 = throwTypeErrorResult ;
throw throwTypeErrorResult ;
2026-07-29 08:29:29 +00:00
}
}
}
2026-08-24 06:08:38 +00:00
} ) ( ) ;
2026-07-29 08:29:29 +00:00
} ) ;
}
2026-08-24 06:08:38 +00:00
c1 = undefined ;
c2 = true ;
c3 = false ;
c4 = false ;
c5 = undefined ;
2026-07-29 08:29:29 +00:00
function recordFirstStartedActiveRootSpanId ( spanContext ) {
if ( ! spanId ) {
if ( obj . isRootSpan ( spanContext ) ) {
spanId = spanContext . spanContext ( ) . spanId ;
const debug = tmp2 ( tmp3 [ 0 ] ) . debug ;
debug . log ( "[AppStart] First started active root span id recorded." , spanId ) ;
}
obj = flag ( _undefined [ 3 ] ) ;
tmp2 = flag ;
tmp3 = _undefined ;
}
}
obj = {
name : c3 ,
setup ( getOptions ) {
2026-08-24 06:08:38 +00:00
closure _1 = getOptions ;
2026-07-29 08:29:29 +00:00
if ( ! getOptions . getOptions ( ) . enableAppStartTracking ) {
2026-08-24 06:08:38 +00:00
c2 = false ;
2026-07-29 08:29:29 +00:00
const debug = flag ( _undefined [ 0 ] ) . debug ;
debug . warn ( "[AppStart] App start tracking is disabled." ) ;
}
getOptions . on ( "spanStart" , recordFirstStartedActiveRootSpanId ) ;
} ,
afterAllSetup ( arg0 ) {
if ( ! c4 ) {
c4 = true ;
const appRegistryIntegration = true ( _undefined [ 2 ] ) . getAppRegistryIntegration ( arg0 ) ;
if ( ! tmp5 ) {
appRegistryIntegration . onRunApplication ( ( ) => {
2026-08-24 06:08:38 +00:00
const debug = closure _1 _0 ( closure _1 _1 [ 0 ] ) . debug ;
2026-07-29 08:29:29 +00:00
const log = debug . log ;
if ( c3 ) {
log ( "[AppStartIntegration] Resetting app start data flushed flag based on runApplication call." ) ;
c3 = false ;
2026-08-24 06:08:38 +00:00
c5 = undefined ;
2026-07-29 08:29:29 +00:00
} else {
log ( "[AppStartIntegration] Waiting for initial app start was flush, before updating based on runApplication call." ) ;
}
} ) ;
}
const obj = true ( _undefined [ 2 ] ) ;
tmp5 = null === appRegistryIntegration || undefined === appRegistryIntegration ;
}
} ,
processEvent ( arg0 ) {
2026-08-24 06:08:38 +00:00
closure _0 = arg0 ;
2026-07-29 08:29:29 +00:00
return _true ( undefined , undefined , undefined , function * ( ) {
if ( c2 === 2 ) {
c2 = 3 ;
HermesBuiltin . throwTypeError ( ) ;
} else if ( tmp3 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
let obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-25 06:04:03 +00:00
return { value : "HermesInternal" , done : "HermesInternal" } ;
2026-07-29 08:29:29 +00:00
}
} else {
try {
c2 = 2 ;
if ( 0 === c1 ) {
if ( arg0 === 1 ) {
c2 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c2 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-24 06:08:38 +00:00
closure _0 = tmp4 ;
2026-07-29 08:29:29 +00:00
let tmp5 = ! c2 ;
if ( c2 ) {
2026-08-24 06:08:38 +00:00
tmp5 = closure _1 _0 ;
2026-07-29 08:29:29 +00:00
}
if ( ! tmp5 ) {
2026-08-24 06:08:38 +00:00
tmp5 = "transaction" !== closure _1 _0 . type ;
2026-07-29 08:29:29 +00:00
}
if ( ! tmp5 ) {
c1 = 1 ;
c2 = 1 ;
2026-08-24 06:08:38 +00:00
obj1 = { value : null , done : false } ;
obj1 [ 0 ] = closure _1 _7 ( closure _1 _0 ) ;
2026-07-29 08:29:29 +00:00
return obj1 ;
}
}
} else if ( arg0 === 1 ) {
c2 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c2 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
}
c2 = 3 ;
const obj2 = { value : null , done : true } ;
obj2 [ 0 ] = closure _0 ;
return obj2 ;
} catch ( tmp10 ) {
c2 = tmp ;
throw tmp10 ;
}
}
} ) ;
} ,
captureStandaloneAppStart ( ) {
return _true ( this , undefined , undefined , function * ( ) {
if ( c5 === 2 ) {
c5 = 3 ;
HermesBuiltin . throwTypeError ( ) ;
} else if ( tmp6 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
let obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-25 06:04:03 +00:00
return { value : "HermesInternal" , done : "HermesInternal" } ;
2026-07-29 08:29:29 +00:00
}
} else {
try {
c5 = 2 ;
if ( 0 === logResult3 ) {
if ( arg0 === 1 ) {
c5 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c5 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
let timestampMs = tmp3 ;
2026-08-24 06:08:38 +00:00
c0 = tmp7 ;
2026-07-29 08:29:29 +00:00
c0 = undefined ;
timestampMs = undefined ;
2026-08-24 06:08:38 +00:00
c2 = undefined ;
c3 = undefined ;
logResult3 = closure _1 _1 ;
if ( closure _1 _1 ) {
const debug2 = callback ( closure _1 _1 [ 0 ] ) . debug ;
2026-07-29 08:29:29 +00:00
const log = debug2 . log ;
2026-08-24 06:08:38 +00:00
if ( callback ) {
2026-07-29 08:29:29 +00:00
log ( "[AppStart] App start tracking standalone root span (transaction)." ) ;
let endFrames ;
2026-08-24 06:08:38 +00:00
if ( null != closure _4 ) {
endFrames = closure _4 . endFrames ;
2026-07-29 08:29:29 +00:00
}
if ( ! endFrames ) {
2026-08-24 06:08:38 +00:00
if ( callback ( closure _1 _1 [ 1 ] ) . NATIVE . enableNative ) {
2026-07-29 08:29:29 +00:00
c3 = 1 ;
2026-08-24 06:08:38 +00:00
const NATIVE = callback ( closure _1 _1 [ 1 ] ) . NATIVE ;
2026-07-29 08:29:29 +00:00
logResult3 = 2 ;
c5 = 1 ;
2026-08-24 06:08:38 +00:00
obj1 = { value : null , done : false } ;
2026-07-29 08:29:29 +00:00
obj1 [ 0 ] = NATIVE . fetchNativeFrames ( ) ;
return obj1 ;
}
}
} else {
log ( "[AppStart] App start tracking is enabled. App start will be added to the first transaction as a child span." ) ;
}
} else {
const _console = console ;
console . warn ( "[AppStart] Could not capture App Start, missing client, call `Sentry.init` first." ) ;
}
c5 = 3 ;
c5 = 3 ;
let obj2 = { value : null , done : true } ;
obj2 [ 0 ] = arg1 ;
return obj2 ;
}
} else if ( 1 === tmp7 ) {
c3 = 0 ;
2026-08-24 06:08:38 +00:00
closure _4 = c2 ;
const debug = callback ( closure _1 _1 [ 0 ] ) . debug ;
debug . log ( "[AppStart] Failed to capture frames for standalone app start." , closure _4 ) ;
2026-07-29 08:29:29 +00:00
} else if ( 2 === tmp7 ) {
if ( arg0 === 1 ) {
c5 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 0 ;
c5 = 3 ;
const obj3 = { value : null , done : true } ;
obj3 [ 0 ] = arg1 ;
return obj3 ;
} else {
2026-08-24 06:08:38 +00:00
callback = arg1 ;
logResult3 = callback ;
logResult3 = closure _1 _1 ;
const debug4 = callback ( closure _1 _1 [ 0 ] ) . debug ;
logResult3 = callback ;
logResult3 = debug4 . log ( "[AppStart] Captured end frames for standalone app start." , callback ) ;
logResult3 = closure _4 ;
2026-07-29 08:29:29 +00:00
timestampMs = undefined ;
2026-08-24 06:08:38 +00:00
if ( null != closure _4 ) {
timestampMs = closure _4 . timestampMs ;
2026-07-29 08:29:29 +00:00
}
if ( ! timestampMs ) {
2026-08-24 06:08:38 +00:00
obj2 = callback ( closure _1 _1 [ 0 ] ) ;
2026-07-29 08:29:29 +00:00
timestampMs = 1000 * obj2 . timestampInSeconds ( ) ;
}
const obj4 = { timestampMs : null , endFrames : null } ;
obj4 [ 0 ] = timestampMs ;
obj4 [ 1 ] = c0 ;
2026-08-24 06:08:38 +00:00
closure _1 _8 ( obj4 ) ;
2026-07-29 08:29:29 +00:00
c3 = 0 ;
}
} else if ( arg0 === 1 ) {
c5 = 3 ;
throw arg1 ;
} else if ( arg0 !== 2 ) {
if ( c3 . spans ) {
if ( 0 !== c3 . spans . length ) {
2026-08-24 06:08:38 +00:00
let scope = callback ( closure _1 _1 [ 0 ] ) . getCapturedScopesOnSpan ( c2 ) . scope ;
2026-07-29 08:29:29 +00:00
if ( ! scope ) {
2026-08-24 06:08:38 +00:00
obj = callback ( closure _1 _1 [ 0 ] ) ;
2026-07-29 08:29:29 +00:00
scope = obj . getCurrentScope ( ) ;
}
2026-08-24 06:08:38 +00:00
scope . captureEvent ( closure _3 ) ;
const obj15 = callback ( closure _1 _1 [ 0 ] ) ;
2026-07-29 08:29:29 +00:00
}
}
}
2026-08-24 06:08:38 +00:00
let obj6 = callback ( closure _1 _1 [ 0 ] ) ;
2026-07-29 08:29:29 +00:00
const obj5 = { forceTransaction : true , name : "App Start" , op : null } ;
2026-08-24 06:08:38 +00:00
obj5 [ 2 ] = callback ( closure _1 _1 [ 4 ] ) . UI _LOAD ;
closure _2 = obj6 . startInactiveSpan ( obj5 ) ;
if ( ! ( closure _2 instanceof callback ( closure _1 _1 [ 0 ] ) . SentryNonRecordingSpan ) ) {
const obj9 = callback ( closure _1 _1 [ 3 ] ) ;
obj9 . setEndTimeValue ( closure _2 , callback ( closure _1 _1 [ 0 ] ) . timestampInSeconds ( ) ) ;
timestampMs . emit ( "spanEnd" , closure _2 ) ;
const obj10 = callback ( closure _1 _1 [ 0 ] ) ;
closure _3 = callback ( closure _1 _1 [ 3 ] ) . convertSpanToTransaction ( closure _2 ) ;
if ( closure _3 ) {
2026-07-29 08:29:29 +00:00
logResult3 = 3 ;
c5 = 1 ;
obj6 = { value : null , done : false } ;
2026-08-24 06:08:38 +00:00
obj6 [ 0 ] = closure _1 _7 ( closure _3 ) ;
2026-07-29 08:29:29 +00:00
return obj6 ;
} else {
2026-08-24 06:08:38 +00:00
const debug3 = callback ( closure _1 _1 [ 0 ] ) . debug ;
2026-07-29 08:29:29 +00:00
debug3 . warn ( "[AppStart] Failed to convert App Start span to transaction." ) ;
}
2026-08-24 06:08:38 +00:00
const obj11 = callback ( closure _1 _1 [ 3 ] ) ;
2026-07-29 08:29:29 +00:00
}
} catch ( tmp81 ) {
c2 = tmp81 ;
if ( tmp4 === c3 ) {
c5 = tmp2 ;
throw tmp81 ;
}
}
}
} ) ;
} ,
setFirstStartedActiveRootSpanId ( arg0 ) {
2026-08-24 06:08:38 +00:00
closure _5 = arg0 ;
2026-07-29 08:29:29 +00:00
const debug = flag ( _undefined [ 0 ] ) . debug ;
debug . log ( "[AppStart] First started active root span id recorded." , closure _5 ) ;
}
} ;
return obj ;
} ;