UNPKG

@mtdt.temp/browser-core

Version:
23 lines (22 loc) 1.21 kB
/** * LIMITATION: * For NPM setup, this feature flag singleton is shared between RUM and Logs product. * This means that an experimental flag set on the RUM product will be set on the Logs product. * So keep in mind that in certain configurations, your experimental feature flag may affect other products. * * FORMAT: * All feature flags should be snake_cased */ export declare enum ExperimentalFeature { TRACK_INTAKE_REQUESTS = "track_intake_requests", WRITABLE_RESOURCE_GRAPHQL = "writable_resource_graphql", EARLY_REQUEST_COLLECTION = "early_request_collection", WATCH_COOKIE_WITHOUT_LOCK = "watch_cookie_without_lock", USE_TREE_WALKER_FOR_ACTION_NAME = "use_tree_walker_for_action_name", SHORT_SESSION_INVESTIGATION = "short_session_investigation" } export declare function initFeatureFlags(enableExperimentalFeatures: string[] | undefined): void; export declare function addExperimentalFeatures(enabledFeatures: ExperimentalFeature[]): void; export declare function isExperimentalFeatureEnabled(featureName: ExperimentalFeature): boolean; export declare function resetExperimentalFeatures(): void; export declare function getExperimentalFeatures(): Set<ExperimentalFeature>;