콘텐츠로 이동

RUM 설정

RUM 초기화 설정

FTUnityBridge.InitRUMConfig(new RUMConfig()
{
    androidAppId = "androidAppId",
    iOSAppId = "iOSAppId",
    sampleRate = 0.8f,
});
필드 타입 필수 설명
androidAppId string RUM appid를 설정해야 RUM 수집 기능이 활성화됩니다. appid 획득 방법
iOSAppId string RUM appid를 설정해야 RUM 수집 기능이 활성화됩니다. appid 획득 방법
sampleRate float 아니요 샘플링 비율, 범위 [0,1], 0은 수집 안 함, 1은 전체 수집, 기본값 1. 동일한 session_id 내의 모든 View, Action, LongTask, Error 데이터에 적용됩니다.
sessionOnErrorSampleRate float 아니요 오류 수집 비율을 설정합니다. sampleRate에 의해 샘플링되지 않은 세션에서 세션 중 오류가 발생하면 오류 발생 전 1분 범위의 데이터를 수집할 수 있습니다. 기본값은 0입니다.
enableNativeUserAction boolean 아니요 Native Action 추적 여부, Button 클릭 이벤트, 기본값 false, Android 클라우드 패키징은 지원되지 않습니다.
enableNativeUserResource boolean 아니요 Native Resource 자동 추적 여부, 기본값 false, Android 클라우드 패키징은 지원되지 않습니다. iOS에서 활성화하면 시스템 API로 시작된 리소스도 함께 수집되므로, iOS 측 수동 수집을 비활성화하여 데이터 중복 수집을 방지하세요.
enableNativeUserView boolean 아니요 Native View 자동 추적 여부, 기본값 false
errorMonitorType string/array 아니요 오류 모니터링 보충 유형: all, battery, memory, cpu, 기본값은 설정되지 않음
deviceMonitorType string/array 아니요 페이지 모니터링 보충 유형: all, battery(Android만 지원), memory, cpu, fps, 기본값은 설정되지 않음
detectFrequency string 아니요 페이지 모니터링 빈도: normal(기본값), frequent, rare
globalContext object 아니요 사용자 정의 전역 파라미터, 특수 키: track_id(추적 기능용)
enableResourceHostIP boolean 아니요 요청 대상 도메인 이름의 IP 주소 수집 여부, enableNativeUserResource = true인 기본 수집에만 영향을 미칩니다.
enableTrackNativeCrash boolean 아니요 Android Java CrashOC/C/C++ 크래시 모니터링 활성화 여부, 기본값 false
enableTrackNativeAppANR boolean 아니요 Native ANR 모니터링 활성화 여부, 기본값 false
enableTrackNativeFreeze boolean 아니요 Native Freeze 자동 추적 수행 여부, 기본값 false
nativeFreezeDurationMs number 아니요 Native Freeze 지연 임계값 설정, 범위 [100,), 단위 밀리초. iOS 기본값 250ms, Android 기본값 1000ms
rumDiscardStrategy string 아니요 삭제 정책: discard 새 데이터 삭제(기본값), discardOldest 오래된 데이터 삭제
rumCacheLimitCount number 아니요 로컬 캐시 최대 RUM 항목 수 제한 [10_000,), 기본값 100_000

관련 주제

문서 평가

이 페이지가 도움이 되었나요?