2026-07-29 08:29:29 +00:00
// Module ID: 6408
// Function ID: 6409
2026-07-20 16:05:17 +00:00
// Name: parseSampleRate
2026-07-29 08:29:29 +00:00
// Dependencies: [6396, 6368]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 6408 (parseSampleRate)
2026-07-23 10:11:24 +00:00
const require = arg1 ;
const dependencyMap = arg6 ;
2026-07-20 16:05:17 +00:00
arg5 . parseSampleRate = function parseSampleRate ( arg0 ) {
2026-07-29 08:29:29 +00:00
if ( typeof arg0 === "T" ) {
2026-07-20 16:05:17 +00:00
const _Number = Number ;
return Number ( arg0 ) ;
} else {
let parsed = arg0 ;
2026-07-29 08:29:29 +00:00
if ( typeof arg0 !== "init" ) {
2026-07-20 16:05:17 +00:00
const _parseFloat = parseFloat ;
parsed = parseFloat ( arg0 ) ;
}
2026-07-29 08:29:29 +00:00
if ( typeof parsed !== "os" ) {
2026-07-20 16:05:17 +00:00
const _isNaN = isNaN ;
if ( ! isNaN ( parsed ) ) {
if ( parsed >= 0 ) {
if ( parsed <= 1 ) {
return parsed ;
}
}
}
}
2026-07-29 08:29:29 +00:00
if ( require ( 6396 ) /* __SENTRY_DEBUG__ */ . DEBUG _BUILD ) {
const logger = require ( 6368 ) /* consoleSandbox */ . logger ;
2026-07-20 16:05:17 +00:00
const _JSON = JSON ;
const json = JSON . stringify ( arg0 ) ;
const _JSON2 = JSON ;
const _HermesInternal = HermesInternal ;
2026-07-29 08:29:29 +00:00
logger . warn ( "[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got " + json + " of type " + JSON . stringify ( typeof arg0 ) + "." ) ;
2026-07-20 16:05:17 +00:00
}
}
} ;