datadog-ux-utils Documentation - v1.0.0
    Preparing search index...
    datadogRum: {
        init: (config: RumInitConfiguration) => void;
        addAction: (name: string, context?: RumActionContext) => void;
        addError: (e: any, context?: any) => void;
        addTiming: (name: string, time?: number) => void;
        startSessionReplayRecording: () => void;
        setUser?: (user: Record<string, any>) => void;
        addFeatureFlagEvaluation?: (key: string, value: any) => void;
        addGlobalContext: (key: string, value: any) => void;
        setGlobalContext?: (ctx: Record<string, any>) => void;
        getGlobalContext?: () => Record<string, any>;
        removeGlobalContext?: (key: string) => void;
    }

    Type declaration

    • init: (config: RumInitConfiguration) => void
    • addAction: (name: string, context?: RumActionContext) => void
    • addError: (e: any, context?: any) => void
    • addTiming: (name: string, time?: number) => void
    • startSessionReplayRecording: () => void
    • OptionalsetUser?: (user: Record<string, any>) => void
    • OptionaladdFeatureFlagEvaluation?: (key: string, value: any) => void
    • addGlobalContext: (key: string, value: any) => void
    • OptionalsetGlobalContext?: (ctx: Record<string, any>) => void
    • OptionalgetGlobalContext?: () => Record<string, any>
    • OptionalremoveGlobalContext?: (key: string) => void