decord/source/modules/cache/trackCacheSkipped.native.tsx

33 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 7767
// Function ID: 7768
2026-07-20 16:05:17 +00:00
// Name: trackCacheSkipped
// Dependencies: [1074, 1242, 7578, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 7767 (trackCacheSkipped)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import TTIAnalyticsUtils from "TTIAnalyticsUtils" /* 7578 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/cache/trackCacheSkipped.native.tsx");
2026-07-20 16:05:17 +00:00
export default function trackCacheSkipped(reason, message) {
const obj2 = { load_id: null, reason: null, error_message: null, error_stack: null };
const obj = AnalyticsUtilsDefault;
obj2.load_id = TTIAnalyticsUtils.currentLoadId();
obj2.reason = reason;
2026-07-20 16:05:17 +00:00
message = undefined;
2026-07-29 08:29:29 +00:00
if (message != null) {
2026-07-20 16:05:17 +00:00
message = message.message;
}
obj2.error_message = message;
2026-07-20 16:05:17 +00:00
let stack;
2026-07-29 08:29:29 +00:00
if (message != null) {
2026-07-20 16:05:17 +00:00
stack = message.stack;
}
obj2.error_stack = stack;
obj.track(AnalyticEvents.CACHE_STORE_CACHE_SKIPPED, obj2);
2026-07-20 16:05:17 +00:00
};