statsig-python-core 0.19.2b2604150312__tar.gz → 0.19.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/Cargo.lock +6 -6
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/Cargo.toml +1 -1
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/PKG-INFO +1 -1
- statsig_python_core-0.19.3/statsig-pyo3/tests/test_sec_expo_as_primary.py +402 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/Cargo.toml +1 -1
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_logger.rs +67 -1
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_queue/mod.rs +1 -0
- statsig_python_core-0.19.3/statsig-rust/src/event_logging/event_queue/queued_event.rs +112 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_queue/queued_expo.rs +29 -1
- statsig_python_core-0.19.3/statsig-rust/src/event_logging/event_queue/queued_secondary_expo.rs +93 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/exposure_sampling.rs +15 -4
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/mod.rs +1 -0
- statsig_python_core-0.19.3/statsig-rust/src/event_logging/sec_expo_as_primary_experiment.rs +104 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/proto_specs.rs +70 -1
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/statsig_config_specs.rs +3 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/statsig_metadata.rs +1 -1
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/statsig_options.rs +8 -1
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/event_logger_usage_tests.rs +62 -2
- statsig_python_core-0.19.3/statsig-rust/tests/exposure_tests.rs +998 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/utils/mock_specs_adapter.rs +39 -1
- statsig_python_core-0.19.2b2604150312/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -49
- statsig_python_core-0.19.2b2604150312/statsig-rust/tests/exposure_tests.rs +0 -346
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/py_src/statsig_python_core/__init__.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/py_src/statsig_python_core/data_store.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/py_src/statsig_python_core/error_boundary.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/py_src/statsig_python_core/observability_client.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/py_src/statsig_python_core/output_logger_provider.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/py_src/statsig_python_core/persistent_storage.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/py_src/statsig_python_core/py.typed +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/py_src/statsig_python_core/requirements.txt +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/py_src/statsig_python_core/statsig.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/py_src/statsig_python_core/statsig_python_core.pyi +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/py_src/statsig_python_core/statsig_types.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/pyproject.toml +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-grpc/Cargo.toml +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-grpc/README.md +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-grpc/build.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-grpc/src/lib.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-grpc/src/protos/statsig_forward_proxy.proto +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-grpc/src/statsig_grpc_client.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-grpc/src/statsig_grpc_err.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/.github/workflows/CI.yml +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/.gitignore +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/Cargo.toml +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/README.md +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/data_store_base_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/interned_store_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/lib.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/pyo_utils.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/raw_evaluation_compat_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/safe_gil.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/statsig_base_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/statsig_options_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/statsig_types_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/statsig_user_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/unit_id_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/fork_runner.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/mock_output_logger.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/mock_scrapi.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/profile_util.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_data_store.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_error_boundary.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_experiment_serialization.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_feature_gate_serialization.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_forking.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_get_dynamic_config.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_interned_store_preload.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_layer_param_exposure_sampling.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_layer_serialization.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_observability_client.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_override_adapter.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_performance.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_shutdown.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_statsig.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_statsig_options.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_statsig_user.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_statsig_user_json_serialization.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_statsig_user_none_fields.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/test_user_exposure_e2e.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-pyo3/tests/utils.py +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/build.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/resources/ip_supalite.table +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/__tests__/spec_store_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/compression/compression_helper.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/compression/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/console_capture/console_capture_handler.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/console_capture/console_capture_instances.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/console_capture/console_capture_options.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/console_capture/console_log_line_levels.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/console_capture/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/data_store_interface.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/dcs_str.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/__tests__/rkyv_value_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/dynamic_returnable.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/evaluation_types_initialize_v2.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/evaluator.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/evaluator_context.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/evaluator_result.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/rkyv_value.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/secondary_exposure_key.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/flush_type.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/gcir/dynamic_configs_processor.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/gcir/gcir_options.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/gcir/gcir_process_iter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/gcir/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/global_configs.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/hashing/ahash.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/hashing/djb2.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/hashing/hash_util.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/hashing/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/init_details.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/initialize_response.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/initialize_v2_response.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/instance_registry.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/interned_string.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/interned_values/__tests__/interned_store_eval_value_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/interned_values/__tests__/interned_store_returnable_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/interned_values/__tests__/interned_store_string_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/interned_values/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/interned_values/interned_store.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/interned_values/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/lib.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/logging_utils.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/macros.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/networking/http_types.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/networking/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/networking/network_client.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/networking/network_error.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/networking/providers/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/networking/providers/net_provider_noop.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/networking/proxy_config.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/observability/console_capture_observer.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/observability/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/observability/ops_stats.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/output_logger.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/override_adapter/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/persistent_storage/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/sdk_diagnostics/marker.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/sdk_event_emitter/event_types.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/spec_store.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_adapter/config_spec_background_sync_metrics.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_adapter/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_adapter/response_format.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/__tests__/proto_specs_syncing_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/__tests__/proto_specs_unknown_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/__tests__/proto_specs_vs_json_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/__tests__/proto_stream_reader_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/explicit_params.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/proto_stream_reader.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/spec_types.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/specs_response/specs_hash_map.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/statsig.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/statsig_core_api_options.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/statsig_err.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/statsig_global.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/statsig_runtime.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/statsig_type_factories.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/statsig_types.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/statsig_types_raw.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/user/into_optional.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/user/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/user/statsig_user.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/user/statsig_user_builder.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/user/statsig_user_internal.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/user/statsig_user_loggable.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/user/unit_id.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/user/user_data.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/src/utils/mod.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/check_gate_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/customized_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/big_number_dcs.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/company_id_list +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/dcs_error.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/dcs_non_case_sensitive.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/dcs_user_agent_versions.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/dcs_with_analytical_exposure_sampling.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/demo_proj_dcs.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/eval_proj_dcs.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/get_id_lists.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/perf_proj_dcs.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/test_user_agents.txt +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/ua_string_cases.json +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data/unknown_enum.pb.br +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data_store_bytes_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data_store_json_bytes_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data_store_json_only_no_bytes_methods_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/data_store_proto_bytes_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/direct_gcir_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/expected_evaluation_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/exposure_sampling_key_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/flushing_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/gcir_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/global_configs_test.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/instance_registry_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/list_methods_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/network_client_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/network_failure_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/observability_client_usage_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/output_logger_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/override_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/perf_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/proto_specs_usage_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/spec_store_lock_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/spec_types_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_environment_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_event_emitter_usage_test.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_global_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_options_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_user_builder_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_user_loggable_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/statsig_user_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/typed_getters_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/user_json_tests.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/utils/env_var_guard.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/utils/helpers.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/utils/mock_data_store.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/utils/mock_log_provider.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
- {statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/tests/utils/mod.rs +0 -0
|
@@ -2869,7 +2869,7 @@ dependencies = [
|
|
|
2869
2869
|
|
|
2870
2870
|
[[package]]
|
|
2871
2871
|
name = "sigstat-grpc"
|
|
2872
|
-
version = "0.19.
|
|
2872
|
+
version = "0.19.3"
|
|
2873
2873
|
dependencies = [
|
|
2874
2874
|
"async-trait",
|
|
2875
2875
|
"chrono",
|
|
@@ -2961,7 +2961,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
|
|
2961
2961
|
|
|
2962
2962
|
[[package]]
|
|
2963
2963
|
name = "statsig-node"
|
|
2964
|
-
version = "0.19.
|
|
2964
|
+
version = "0.19.3"
|
|
2965
2965
|
dependencies = [
|
|
2966
2966
|
"async-trait",
|
|
2967
2967
|
"napi",
|
|
@@ -2976,7 +2976,7 @@ dependencies = [
|
|
|
2976
2976
|
|
|
2977
2977
|
[[package]]
|
|
2978
2978
|
name = "statsig-pyo3"
|
|
2979
|
-
version = "0.19.
|
|
2979
|
+
version = "0.19.3"
|
|
2980
2980
|
dependencies = [
|
|
2981
2981
|
"async-trait",
|
|
2982
2982
|
"lazy_static",
|
|
@@ -2991,7 +2991,7 @@ dependencies = [
|
|
|
2991
2991
|
|
|
2992
2992
|
[[package]]
|
|
2993
2993
|
name = "statsig-rust"
|
|
2994
|
-
version = "0.19.
|
|
2994
|
+
version = "0.19.3"
|
|
2995
2995
|
dependencies = [
|
|
2996
2996
|
"ahash",
|
|
2997
2997
|
"arc-swap",
|
|
@@ -3041,7 +3041,7 @@ dependencies = [
|
|
|
3041
3041
|
|
|
3042
3042
|
[[package]]
|
|
3043
3043
|
name = "statsig_elixir"
|
|
3044
|
-
version = "0.19.
|
|
3044
|
+
version = "0.19.3"
|
|
3045
3045
|
dependencies = [
|
|
3046
3046
|
"async-trait",
|
|
3047
3047
|
"parking_lot",
|
|
@@ -3054,7 +3054,7 @@ dependencies = [
|
|
|
3054
3054
|
|
|
3055
3055
|
[[package]]
|
|
3056
3056
|
name = "statsig_ffi"
|
|
3057
|
-
version = "0.19.
|
|
3057
|
+
version = "0.19.3"
|
|
3058
3058
|
dependencies = [
|
|
3059
3059
|
"async-trait",
|
|
3060
3060
|
"cbindgen",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: statsig_python_core
|
|
3
|
-
Version: 0.19.
|
|
3
|
+
Version: 0.19.3
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
import pytest
|
|
4
|
+
from pytest_httpserver import HTTPServer
|
|
5
|
+
from statsig_python_core import Statsig, StatsigOptions, StatsigUser
|
|
6
|
+
|
|
7
|
+
from mock_scrapi import MockScrapi
|
|
8
|
+
from utils import get_test_data_resource
|
|
9
|
+
|
|
10
|
+
SEC_EXPO_AS_PRIMARY_FLAG = "sec_expo_as_primary:abc123"
|
|
11
|
+
SEC_EXPO_AS_PRIMARY_FLAG_BUCKET = 307
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _create_statsig(
|
|
15
|
+
httpserver: HTTPServer, experimental_flags=None, sec_expo_number=None
|
|
16
|
+
):
|
|
17
|
+
mock_scrapi = MockScrapi(httpserver)
|
|
18
|
+
dcs_content = json.loads(get_test_data_resource("eval_proj_dcs.json"))
|
|
19
|
+
if sec_expo_number is not None:
|
|
20
|
+
dcs_content.setdefault("sdk_configs", {})["sec_expo_number"] = sec_expo_number
|
|
21
|
+
|
|
22
|
+
mock_scrapi.stub(
|
|
23
|
+
"/v2/download_config_specs/secret-key.json",
|
|
24
|
+
response=json.dumps(dcs_content),
|
|
25
|
+
method="GET",
|
|
26
|
+
)
|
|
27
|
+
mock_scrapi.stub("/v1/log_event", response='{"success": true}', method="POST")
|
|
28
|
+
|
|
29
|
+
options = StatsigOptions()
|
|
30
|
+
options.specs_url = mock_scrapi.url_for_endpoint("/v2/download_config_specs")
|
|
31
|
+
options.log_event_url = mock_scrapi.url_for_endpoint("/v1/log_event")
|
|
32
|
+
options.output_log_level = "none"
|
|
33
|
+
options.experimental_flags = experimental_flags
|
|
34
|
+
|
|
35
|
+
statsig = Statsig("secret-key", options)
|
|
36
|
+
statsig.initialize().wait()
|
|
37
|
+
|
|
38
|
+
return statsig, mock_scrapi
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _assert_exposure(event, event_name, metadata):
|
|
42
|
+
assert event["eventName"] == event_name
|
|
43
|
+
for key, value in metadata.items():
|
|
44
|
+
assert event["metadata"][key] == value
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@pytest.mark.parametrize(
|
|
48
|
+
"evaluate, expected_primary, expected_secondary_events",
|
|
49
|
+
[
|
|
50
|
+
pytest.param(
|
|
51
|
+
lambda statsig: statsig.check_gate(
|
|
52
|
+
StatsigUser("a_user_id"), "test_nested_gate_condition"
|
|
53
|
+
),
|
|
54
|
+
(
|
|
55
|
+
"statsig::gate_exposure",
|
|
56
|
+
{
|
|
57
|
+
"gate": "test_nested_gate_condition",
|
|
58
|
+
"gateValue": "true",
|
|
59
|
+
"ruleID": "6MlXHRavmo1ujM1NkZNjhQ",
|
|
60
|
+
},
|
|
61
|
+
),
|
|
62
|
+
[
|
|
63
|
+
(
|
|
64
|
+
"statsig::gate_exposure",
|
|
65
|
+
{
|
|
66
|
+
"gate": "test_email",
|
|
67
|
+
"gateValue": "false",
|
|
68
|
+
"ruleID": "default",
|
|
69
|
+
},
|
|
70
|
+
),
|
|
71
|
+
(
|
|
72
|
+
"statsig::gate_exposure",
|
|
73
|
+
{
|
|
74
|
+
"gate": "test_environment_tier",
|
|
75
|
+
"gateValue": "false",
|
|
76
|
+
"ruleID": "default",
|
|
77
|
+
},
|
|
78
|
+
),
|
|
79
|
+
],
|
|
80
|
+
id="gate",
|
|
81
|
+
),
|
|
82
|
+
pytest.param(
|
|
83
|
+
lambda statsig: statsig.get_dynamic_config(
|
|
84
|
+
StatsigUser("a_user_id"), "operating_system_config"
|
|
85
|
+
),
|
|
86
|
+
(
|
|
87
|
+
"statsig::config_exposure",
|
|
88
|
+
{
|
|
89
|
+
"config": "operating_system_config",
|
|
90
|
+
"ruleID": "default",
|
|
91
|
+
},
|
|
92
|
+
),
|
|
93
|
+
[
|
|
94
|
+
(
|
|
95
|
+
"statsig::gate_exposure",
|
|
96
|
+
{
|
|
97
|
+
"gate": "test_email",
|
|
98
|
+
"gateValue": "false",
|
|
99
|
+
"ruleID": "default",
|
|
100
|
+
},
|
|
101
|
+
),
|
|
102
|
+
],
|
|
103
|
+
id="dynamic_config",
|
|
104
|
+
),
|
|
105
|
+
pytest.param(
|
|
106
|
+
lambda statsig: statsig.get_experiment(
|
|
107
|
+
StatsigUser("a-user", email="daniel@statsig.com"),
|
|
108
|
+
"running_exp_in_unlayered_with_holdout",
|
|
109
|
+
),
|
|
110
|
+
(
|
|
111
|
+
"statsig::config_exposure",
|
|
112
|
+
{
|
|
113
|
+
"config": "running_exp_in_unlayered_with_holdout",
|
|
114
|
+
"ruleID": "5suobe8yyvznqasn9Ph1dI",
|
|
115
|
+
},
|
|
116
|
+
),
|
|
117
|
+
[
|
|
118
|
+
(
|
|
119
|
+
"statsig::gate_exposure",
|
|
120
|
+
{
|
|
121
|
+
"gate": "global_holdout",
|
|
122
|
+
"gateValue": "false",
|
|
123
|
+
"ruleID": "3QoA4ncNdVGBaMt3N1KYjz:0.50:1",
|
|
124
|
+
},
|
|
125
|
+
),
|
|
126
|
+
(
|
|
127
|
+
"statsig::gate_exposure",
|
|
128
|
+
{
|
|
129
|
+
"gate": "exp_holdout",
|
|
130
|
+
"gateValue": "false",
|
|
131
|
+
"ruleID": "1rEqLOpCROaRafv7ubGgax",
|
|
132
|
+
},
|
|
133
|
+
),
|
|
134
|
+
],
|
|
135
|
+
id="experiment",
|
|
136
|
+
),
|
|
137
|
+
pytest.param(
|
|
138
|
+
lambda statsig: statsig.get_layer(
|
|
139
|
+
StatsigUser("a_user_id"), "layer_in_global_holdout"
|
|
140
|
+
).get_string("shared_param", ""),
|
|
141
|
+
(
|
|
142
|
+
"statsig::layer_exposure",
|
|
143
|
+
{
|
|
144
|
+
"config": "layer_in_global_holdout",
|
|
145
|
+
"parameterName": "shared_param",
|
|
146
|
+
},
|
|
147
|
+
),
|
|
148
|
+
[
|
|
149
|
+
(
|
|
150
|
+
"statsig::gate_exposure",
|
|
151
|
+
{
|
|
152
|
+
"gate": "global_holdout",
|
|
153
|
+
"gateValue": "false",
|
|
154
|
+
"ruleID": "3QoA4ncNdVGBaMt3N1KYjz:0.50:1",
|
|
155
|
+
},
|
|
156
|
+
),
|
|
157
|
+
],
|
|
158
|
+
id="layer",
|
|
159
|
+
),
|
|
160
|
+
],
|
|
161
|
+
)
|
|
162
|
+
def test_gate_dynamic_config_experiment_and_layer_log_secondary_exposures_as_primary(
|
|
163
|
+
httpserver: HTTPServer,
|
|
164
|
+
evaluate,
|
|
165
|
+
expected_primary,
|
|
166
|
+
expected_secondary_events,
|
|
167
|
+
):
|
|
168
|
+
statsig, mock_scrapi = _create_statsig(
|
|
169
|
+
httpserver,
|
|
170
|
+
experimental_flags={SEC_EXPO_AS_PRIMARY_FLAG},
|
|
171
|
+
sec_expo_number=1000,
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
try:
|
|
175
|
+
evaluate(statsig)
|
|
176
|
+
statsig.flush_events().wait()
|
|
177
|
+
|
|
178
|
+
events = mock_scrapi.get_logged_events()
|
|
179
|
+
assert len(events) == 1 + len(expected_secondary_events)
|
|
180
|
+
|
|
181
|
+
for event in events:
|
|
182
|
+
assert event["secondaryExposures"] == []
|
|
183
|
+
|
|
184
|
+
_assert_exposure(events[0], expected_primary[0], expected_primary[1])
|
|
185
|
+
for event, expected in zip(events[1:], expected_secondary_events):
|
|
186
|
+
_assert_exposure(event, expected[0], expected[1])
|
|
187
|
+
finally:
|
|
188
|
+
statsig.shutdown().wait()
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def test_secondary_exposures_logged_as_primary_when_flag_enabled(
|
|
192
|
+
httpserver: HTTPServer,
|
|
193
|
+
):
|
|
194
|
+
statsig, mock_scrapi = _create_statsig(
|
|
195
|
+
httpserver,
|
|
196
|
+
experimental_flags={SEC_EXPO_AS_PRIMARY_FLAG},
|
|
197
|
+
sec_expo_number=1000,
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
try:
|
|
201
|
+
assert statsig.check_gate(
|
|
202
|
+
StatsigUser("a_user_id"), "test_nested_gate_condition"
|
|
203
|
+
)
|
|
204
|
+
statsig.flush_events().wait()
|
|
205
|
+
|
|
206
|
+
events = mock_scrapi.get_logged_events()
|
|
207
|
+
assert len(events) == 3
|
|
208
|
+
|
|
209
|
+
for event in events:
|
|
210
|
+
assert event["secondaryExposures"] == []
|
|
211
|
+
|
|
212
|
+
_assert_exposure(
|
|
213
|
+
events[0],
|
|
214
|
+
"statsig::gate_exposure",
|
|
215
|
+
{
|
|
216
|
+
"gate": "test_nested_gate_condition",
|
|
217
|
+
"gateValue": "true",
|
|
218
|
+
"ruleID": "6MlXHRavmo1ujM1NkZNjhQ",
|
|
219
|
+
},
|
|
220
|
+
)
|
|
221
|
+
_assert_exposure(
|
|
222
|
+
events[1],
|
|
223
|
+
"statsig::gate_exposure",
|
|
224
|
+
{
|
|
225
|
+
"gate": "test_email",
|
|
226
|
+
"gateValue": "false",
|
|
227
|
+
"ruleID": "default",
|
|
228
|
+
},
|
|
229
|
+
)
|
|
230
|
+
_assert_exposure(
|
|
231
|
+
events[2],
|
|
232
|
+
"statsig::gate_exposure",
|
|
233
|
+
{
|
|
234
|
+
"gate": "test_environment_tier",
|
|
235
|
+
"gateValue": "false",
|
|
236
|
+
"ruleID": "default",
|
|
237
|
+
},
|
|
238
|
+
)
|
|
239
|
+
finally:
|
|
240
|
+
statsig.shutdown().wait()
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
def test_secondary_exposures_remain_on_primary_when_flag_not_enabled(
|
|
244
|
+
httpserver: HTTPServer,
|
|
245
|
+
):
|
|
246
|
+
statsig, mock_scrapi = _create_statsig(httpserver, sec_expo_number=300)
|
|
247
|
+
|
|
248
|
+
try:
|
|
249
|
+
assert statsig.check_gate(
|
|
250
|
+
StatsigUser("a_user_id"), "test_nested_gate_condition"
|
|
251
|
+
)
|
|
252
|
+
statsig.flush_events().wait()
|
|
253
|
+
|
|
254
|
+
events = mock_scrapi.get_logged_events()
|
|
255
|
+
assert len(events) == 1
|
|
256
|
+
|
|
257
|
+
_assert_exposure(
|
|
258
|
+
events[0],
|
|
259
|
+
"statsig::gate_exposure",
|
|
260
|
+
{
|
|
261
|
+
"gate": "test_nested_gate_condition",
|
|
262
|
+
"gateValue": "true",
|
|
263
|
+
"ruleID": "6MlXHRavmo1ujM1NkZNjhQ",
|
|
264
|
+
},
|
|
265
|
+
)
|
|
266
|
+
assert events[0]["secondaryExposures"] == [
|
|
267
|
+
{
|
|
268
|
+
"gate": "test_email",
|
|
269
|
+
"gateValue": "false",
|
|
270
|
+
"ruleID": "default",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"gate": "test_environment_tier",
|
|
274
|
+
"gateValue": "false",
|
|
275
|
+
"ruleID": "default",
|
|
276
|
+
},
|
|
277
|
+
]
|
|
278
|
+
finally:
|
|
279
|
+
statsig.shutdown().wait()
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def test_secondary_exposures_remain_on_primary_when_sec_expo_number_is_zero(
|
|
283
|
+
httpserver: HTTPServer,
|
|
284
|
+
):
|
|
285
|
+
statsig, mock_scrapi = _create_statsig(
|
|
286
|
+
httpserver,
|
|
287
|
+
experimental_flags={SEC_EXPO_AS_PRIMARY_FLAG},
|
|
288
|
+
sec_expo_number=0,
|
|
289
|
+
)
|
|
290
|
+
|
|
291
|
+
try:
|
|
292
|
+
assert statsig.check_gate(
|
|
293
|
+
StatsigUser("a_user_id"), "test_nested_gate_condition"
|
|
294
|
+
)
|
|
295
|
+
statsig.flush_events().wait()
|
|
296
|
+
|
|
297
|
+
events = mock_scrapi.get_logged_events()
|
|
298
|
+
assert len(events) == 1
|
|
299
|
+
|
|
300
|
+
_assert_exposure(
|
|
301
|
+
events[0],
|
|
302
|
+
"statsig::gate_exposure",
|
|
303
|
+
{
|
|
304
|
+
"gate": "test_nested_gate_condition",
|
|
305
|
+
"gateValue": "true",
|
|
306
|
+
"ruleID": "6MlXHRavmo1ujM1NkZNjhQ",
|
|
307
|
+
},
|
|
308
|
+
)
|
|
309
|
+
assert events[0]["secondaryExposures"] == [
|
|
310
|
+
{
|
|
311
|
+
"gate": "test_email",
|
|
312
|
+
"gateValue": "false",
|
|
313
|
+
"ruleID": "default",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"gate": "test_environment_tier",
|
|
317
|
+
"gateValue": "false",
|
|
318
|
+
"ruleID": "default",
|
|
319
|
+
},
|
|
320
|
+
]
|
|
321
|
+
finally:
|
|
322
|
+
statsig.shutdown().wait()
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
def test_secondary_exposures_remain_on_primary_when_sec_expo_number_missing(
|
|
326
|
+
httpserver: HTTPServer,
|
|
327
|
+
):
|
|
328
|
+
statsig, mock_scrapi = _create_statsig(
|
|
329
|
+
httpserver,
|
|
330
|
+
experimental_flags={SEC_EXPO_AS_PRIMARY_FLAG},
|
|
331
|
+
)
|
|
332
|
+
|
|
333
|
+
try:
|
|
334
|
+
assert statsig.check_gate(
|
|
335
|
+
StatsigUser("a_user_id"), "test_nested_gate_condition"
|
|
336
|
+
)
|
|
337
|
+
statsig.flush_events().wait()
|
|
338
|
+
|
|
339
|
+
events = mock_scrapi.get_logged_events()
|
|
340
|
+
assert len(events) == 1
|
|
341
|
+
|
|
342
|
+
_assert_exposure(
|
|
343
|
+
events[0],
|
|
344
|
+
"statsig::gate_exposure",
|
|
345
|
+
{
|
|
346
|
+
"gate": "test_nested_gate_condition",
|
|
347
|
+
"gateValue": "true",
|
|
348
|
+
"ruleID": "6MlXHRavmo1ujM1NkZNjhQ",
|
|
349
|
+
},
|
|
350
|
+
)
|
|
351
|
+
assert events[0]["secondaryExposures"] == [
|
|
352
|
+
{
|
|
353
|
+
"gate": "test_email",
|
|
354
|
+
"gateValue": "false",
|
|
355
|
+
"ruleID": "default",
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"gate": "test_environment_tier",
|
|
359
|
+
"gateValue": "false",
|
|
360
|
+
"ruleID": "default",
|
|
361
|
+
},
|
|
362
|
+
]
|
|
363
|
+
finally:
|
|
364
|
+
statsig.shutdown().wait()
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
@pytest.mark.parametrize(
|
|
368
|
+
"sec_expo_number, should_log_as_primary",
|
|
369
|
+
[
|
|
370
|
+
(0, False),
|
|
371
|
+
(SEC_EXPO_AS_PRIMARY_FLAG_BUCKET, False),
|
|
372
|
+
(SEC_EXPO_AS_PRIMARY_FLAG_BUCKET + 1, True),
|
|
373
|
+
(1000, True),
|
|
374
|
+
],
|
|
375
|
+
)
|
|
376
|
+
def test_secondary_exposures_roll_out_from_zero_to_thousand(
|
|
377
|
+
httpserver: HTTPServer,
|
|
378
|
+
sec_expo_number,
|
|
379
|
+
should_log_as_primary,
|
|
380
|
+
):
|
|
381
|
+
statsig, mock_scrapi = _create_statsig(
|
|
382
|
+
httpserver,
|
|
383
|
+
experimental_flags={SEC_EXPO_AS_PRIMARY_FLAG},
|
|
384
|
+
sec_expo_number=sec_expo_number,
|
|
385
|
+
)
|
|
386
|
+
|
|
387
|
+
try:
|
|
388
|
+
assert statsig.check_gate(
|
|
389
|
+
StatsigUser("a_user_id"), "test_nested_gate_condition"
|
|
390
|
+
)
|
|
391
|
+
statsig.flush_events().wait()
|
|
392
|
+
|
|
393
|
+
events = mock_scrapi.get_logged_events()
|
|
394
|
+
if should_log_as_primary:
|
|
395
|
+
assert len(events) == 3
|
|
396
|
+
for event in events:
|
|
397
|
+
assert event["secondaryExposures"] == []
|
|
398
|
+
else:
|
|
399
|
+
assert len(events) == 1
|
|
400
|
+
assert len(events[0]["secondaryExposures"]) == 2
|
|
401
|
+
finally:
|
|
402
|
+
statsig.shutdown().wait()
|
{statsig_python_core-0.19.2b2604150312 → statsig_python_core-0.19.3}/statsig-rust/Cargo.toml
RENAMED
|
@@ -40,7 +40,7 @@ serde_json = { version = "1.0.143", features = [
|
|
|
40
40
|
] }
|
|
41
41
|
serde_with = "3.4.0"
|
|
42
42
|
sha2 = "0.10.8"
|
|
43
|
-
sigstat-grpc = { path = "../statsig-grpc", version = "0.19.
|
|
43
|
+
sigstat-grpc = { path = "../statsig-grpc", version = "0.19.3", optional = true }
|
|
44
44
|
simple_logger = { version = "5.0.0" }
|
|
45
45
|
tempfile = "3.8.1"
|
|
46
46
|
tokio = { version = "1.39.1", features = ["full"] }
|
|
@@ -3,10 +3,12 @@ use super::{
|
|
|
3
3
|
batch::EventBatch,
|
|
4
4
|
queue::{EventQueue, QueueReconcileResult},
|
|
5
5
|
queued_event::{EnqueueOperation, QueuedEvent},
|
|
6
|
+
queued_secondary_expo::EnqueueSecondaryExposureAsPrimaryOp,
|
|
6
7
|
},
|
|
7
8
|
exposure_sampling::ExposureSampling,
|
|
8
9
|
flush_interval::FlushInterval,
|
|
9
10
|
flush_type::FlushType,
|
|
11
|
+
sec_expo_as_primary_experiment::SecExpoAsPrimaryExperiment,
|
|
10
12
|
statsig_event_internal::StatsigEventInternal,
|
|
11
13
|
};
|
|
12
14
|
use crate::{
|
|
@@ -57,6 +59,7 @@ pub struct EventLogger {
|
|
|
57
59
|
flush_interval: FlushInterval,
|
|
58
60
|
shutdown_notify: Notify,
|
|
59
61
|
ops_stats: Arc<OpsStatsForInstance>,
|
|
62
|
+
sec_expo_experiment: SecExpoAsPrimaryExperiment,
|
|
60
63
|
enqueue_dropped_events_count: AtomicU64,
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -85,6 +88,7 @@ impl EventLogger {
|
|
|
85
88
|
limit_flush_notify: Notify::new(),
|
|
86
89
|
limit_flush_semaphore: Arc::new(Semaphore::new(MAX_LIMIT_FLUSH_TASKS)),
|
|
87
90
|
ops_stats: OPS_STATS.get_for_instance(sdk_key),
|
|
91
|
+
sec_expo_experiment: SecExpoAsPrimaryExperiment::new(sdk_key, options),
|
|
88
92
|
enqueue_dropped_events_count: AtomicU64::new(0),
|
|
89
93
|
});
|
|
90
94
|
|
|
@@ -97,12 +101,74 @@ impl EventLogger {
|
|
|
97
101
|
return;
|
|
98
102
|
}
|
|
99
103
|
|
|
100
|
-
let
|
|
104
|
+
let sec_expo_as_primary_active = self.sec_expo_experiment.should_log_as_primary();
|
|
105
|
+
let decision = self
|
|
106
|
+
.event_sampler
|
|
107
|
+
.get_sampling_decision(&operation, sec_expo_as_primary_active);
|
|
108
|
+
|
|
109
|
+
if sec_expo_as_primary_active {
|
|
110
|
+
let should_log_parent = decision.should_log();
|
|
111
|
+
let pending_event = operation.into_queued_event(decision);
|
|
112
|
+
self.enqueue_event_with_secondary_exposures_as_primary(
|
|
113
|
+
pending_event,
|
|
114
|
+
should_log_parent,
|
|
115
|
+
);
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
|
|
101
119
|
if !decision.should_log() {
|
|
102
120
|
return;
|
|
103
121
|
}
|
|
104
122
|
|
|
105
123
|
let pending_event = operation.into_queued_event(decision);
|
|
124
|
+
self.add_pending_event(pending_event);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
fn enqueue_event_with_secondary_exposures_as_primary(
|
|
128
|
+
&self,
|
|
129
|
+
mut pending_event: QueuedEvent,
|
|
130
|
+
should_log_parent: bool,
|
|
131
|
+
) {
|
|
132
|
+
let Some(exposure_time) = pending_event.exposure_time() else {
|
|
133
|
+
if should_log_parent {
|
|
134
|
+
self.add_pending_event(pending_event);
|
|
135
|
+
}
|
|
136
|
+
return;
|
|
137
|
+
};
|
|
138
|
+
let secondary_exposures = pending_event.take_secondary_exposures_for_primary_logging();
|
|
139
|
+
if secondary_exposures.is_empty() {
|
|
140
|
+
if should_log_parent {
|
|
141
|
+
self.add_pending_event(pending_event);
|
|
142
|
+
}
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
let Some(user) = pending_event.user_for_secondary_exposures() else {
|
|
147
|
+
if should_log_parent {
|
|
148
|
+
self.add_pending_event(pending_event);
|
|
149
|
+
}
|
|
150
|
+
return;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
if should_log_parent {
|
|
154
|
+
self.add_pending_event(pending_event);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
for secondary_exposure in secondary_exposures {
|
|
158
|
+
let operation = EnqueueSecondaryExposureAsPrimaryOp {
|
|
159
|
+
user: user.clone(),
|
|
160
|
+
secondary_exposure,
|
|
161
|
+
exposure_time,
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
let decision = self.event_sampler.get_sampling_decision(&operation, false);
|
|
165
|
+
if decision.should_log() {
|
|
166
|
+
self.add_pending_event(operation.into_queued_event(decision));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
fn add_pending_event(&self, pending_event: QueuedEvent) {
|
|
106
172
|
match self.queue.add(pending_event) {
|
|
107
173
|
QueueAddResult::Noop => (),
|
|
108
174
|
QueueAddResult::NeedsFlush => self.limit_flush_notify.notify_one(),
|