statsig-python-core 0.24.0__tar.gz → 0.24.1rc2610302338__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.24.0 → statsig_python_core-0.24.1rc2610302338}/Cargo.lock +6 -6
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/Cargo.toml +1 -1
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/PKG-INFO +1 -1
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/Cargo.toml +1 -1
- statsig_python_core-0.24.1rc2610302338/statsig-rust/src/experimental/mod.rs +20 -0
- statsig_python_core-0.24.1rc2610302338/statsig-rust/src/experimental/user_enrichment/forward_proxy.rs +171 -0
- statsig_python_core-0.24.1rc2610302338/statsig-rust/src/experimental/user_enrichment/fp_user_builder.rs +201 -0
- statsig_python_core-0.24.1rc2610302338/statsig-rust/src/experimental/user_enrichment/mod.rs +72 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/id_lists_adapter/statsig_data_store_id_lists_adapter_tests.rs +1 -1
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/lib.rs +1 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/http_types.rs +2 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/network_client.rs +36 -8
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/network_error.rs +5 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/providers/net_provider_noop.rs +1 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +22 -14
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig_metadata.rs +1 -1
- statsig_python_core-0.24.1rc2610302338/statsig-rust/tests/forward_proxy_usage_tests.rs +94 -0
- statsig_python_core-0.24.1rc2610302338/statsig-rust/tests/user_enrichment_tests.rs +594 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/py_src/statsig_python_core/__init__.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/py_src/statsig_python_core/data_store.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/py_src/statsig_python_core/error_boundary.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/py_src/statsig_python_core/observability_client.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/py_src/statsig_python_core/output_logger_provider.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/py_src/statsig_python_core/persistent_storage.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/py_src/statsig_python_core/py.typed +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/py_src/statsig_python_core/requirements.txt +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/py_src/statsig_python_core/statsig.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/py_src/statsig_python_core/statsig_python_core.pyi +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/py_src/statsig_python_core/statsig_types.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/pyproject.toml +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-grpc/Cargo.toml +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-grpc/README.md +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-grpc/build.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-grpc/src/lib.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-grpc/src/protos/statsig_forward_proxy.proto +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-grpc/src/statsig_grpc_client.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-grpc/src/statsig_grpc_err.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/.github/workflows/CI.yml +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/.gitignore +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/Cargo.toml +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/README.md +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/data_store_base_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/interned_store_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/lib.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/pyo_utils.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/raw_evaluation_compat_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/safe_gil.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/statsig_base_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/statsig_options_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/statsig_types_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/statsig_user_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/unit_id_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/data/enforce_sticky_dcs.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/fork_runner.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/integration/celery_prefork/README.md +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/integration/celery_prefork/celery_app.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/integration/celery_prefork/test_celery_prefork.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/mock_output_logger.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/mock_scrapi.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/profile_util.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_data_store.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_enforce_sticky_values.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_error_boundary.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_experiment_group_targeting.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_experiment_serialization.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_feature_gate_serialization.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_forking.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_get_autotune_list.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_get_dynamic_config.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_get_experiment_groups.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_get_layer_list.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_interned_store_preload.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_layer_param_exposure_sampling.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_layer_serialization.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_observability_client.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_override_adapter.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_performance.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_sdk_event_emitter.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_sec_expo_as_primary.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_shutdown.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_statsig.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_statsig_options.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_statsig_user.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_statsig_user_json_serialization.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_statsig_user_none_fields.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/test_user_exposure_e2e.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-pyo3/tests/utils.py +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/build.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/examples/eval_contention_bench.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/examples/intern_contention_bench.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/resources/ip_supalite.table +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/__tests__/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/__tests__/spec_store_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/compression/compression_helper.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/compression/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/console_capture/console_capture_handler.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/console_capture/console_capture_instances.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/console_capture/console_capture_options.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/console_capture/console_log_line_levels.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/console_capture/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/data_store_interface.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/data_store_lifecycle.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/dcs_str.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/__tests__/evaluator_context_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/__tests__/rkyv_value_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/dynamic_returnable.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/evaluation_types_initialize_v2.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/evaluator.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/evaluator_context.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/evaluator_result.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/rkyv_value.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/secondary_exposure_key.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_logger.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_queue/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_queue/queued_expo.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/event_queue/queued_secondary_expo.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/exposure_sampling.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/flush_type.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/sec_expo_as_primary_experiment.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/gcir/dynamic_configs_processor.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/gcir/gcir_options.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/gcir/gcir_process_iter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/gcir/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/global_configs.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/hashing/ahash.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/hashing/djb2.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/hashing/hash_util.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/hashing/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/id_lists_adapter/id_lists_data_store_writer.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/id_lists_adapter/id_lists_snapshot.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/id_lists_adapter/statsig_data_store_id_lists_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/init_details.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/initialize_response.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/initialize_v2_response.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/instance_registry.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/interned_string.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/interned_values/__tests__/interned_store_eval_value_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/interned_values/__tests__/interned_store_returnable_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/interned_values/__tests__/interned_store_string_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/interned_values/__tests__/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/interned_values/interned_store.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/interned_values/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/logging_utils.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/macros.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/ca_bundle.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/providers/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/networking/proxy_config.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/observability/console_capture_observer.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/observability/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/observability/ops_stats.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/output_logger.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/override_adapter/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/persistent_storage/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/sdk_diagnostics/marker.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/sdk_event_emitter/event_types.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/spec_store.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_adapter/config_spec_background_sync_metrics.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_adapter/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_adapter/response_format.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/__tests__/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/__tests__/proto_specs_syncing_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/__tests__/proto_specs_unknown_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/__tests__/proto_specs_vs_json_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/__tests__/proto_stream_reader_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/explicit_params.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/proto_specs.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/proto_stream_reader.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/spec_types.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/specs_hash_map.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/specs_response/statsig_config_specs.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig_core_api_options.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig_err.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig_global.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig_id_list_recovery_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig_id_list_source_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig_options.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig_runtime.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig_type_factories.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig_types.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/statsig_types_raw.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/user/into_optional.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/user/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/user/statsig_user.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/user/statsig_user_builder.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/user/statsig_user_internal.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/user/statsig_user_loggable.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/user/unit_id.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/user/user_data.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/src/utils/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/check_gate_concurrency_bench.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/check_gate_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/cmab_exposure_rule_id_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/customized_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/big_number_dcs.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/company_id_list +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/dcs_cmab_exposure_rule_id.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/dcs_error.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/dcs_non_case_sensitive.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/dcs_target_app_filtering.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/dcs_target_app_filtering_hashed_keys.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/dcs_user_agent_versions.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/dcs_with_analytical_exposure_sampling.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/demo_proj_dcs.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/eval_proj_dcs.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/get_id_lists.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/perf_proj_dcs.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/test_user_agents.txt +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/ua_string_cases.json +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data/unknown_enum.pb.br +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data_store_bytes_adapter_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data_store_json_bytes_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data_store_json_only_no_bytes_methods_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/data_store_proto_bytes_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/direct_gcir_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/evaluator_isolation_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/event_logger_usage_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/expected_evaluation_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/exposure_sampling_key_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/exposure_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/flushing_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/fork_safety_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/gcir_experiment_group_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/gcir_group_alias_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/gcir_target_app_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/gcir_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/global_configs_test.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/id_list_memberships_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/instance_registry_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/list_methods_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/memory_leak_per_request_users_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/network_client_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/network_failure_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/network_tls_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/observability_client_usage_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/output_logger_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/override_adapter_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/parameter_store_parameter_names_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/perf_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/persistent_storage_enforce_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/proto_specs_usage_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/spec_store_lock_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/spec_types_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_environment_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_event_emitter_usage_test.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_global_fork_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_global_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_options_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_user_builder_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_user_loggable_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/statsig_user_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/tls_distrust_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/typed_getters_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/user_json_tests.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/env_var_guard.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/gcir.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/gcir_experiment_group_fixtures.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/helpers.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/mock_data_store.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/mock_log_provider.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/mock_specs_adapter.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/mod.rs +0 -0
- {statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/tests/utils/tls_test_server.rs +0 -0
|
@@ -2988,7 +2988,7 @@ dependencies = [
|
|
|
2988
2988
|
|
|
2989
2989
|
[[package]]
|
|
2990
2990
|
name = "sigstat-grpc"
|
|
2991
|
-
version = "0.24.
|
|
2991
|
+
version = "0.24.1-rc.2610302338"
|
|
2992
2992
|
dependencies = [
|
|
2993
2993
|
"async-trait",
|
|
2994
2994
|
"chrono",
|
|
@@ -3080,7 +3080,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
|
|
3080
3080
|
|
|
3081
3081
|
[[package]]
|
|
3082
3082
|
name = "statsig-node"
|
|
3083
|
-
version = "0.24.
|
|
3083
|
+
version = "0.24.1-rc.2610302338"
|
|
3084
3084
|
dependencies = [
|
|
3085
3085
|
"async-trait",
|
|
3086
3086
|
"napi",
|
|
@@ -3095,7 +3095,7 @@ dependencies = [
|
|
|
3095
3095
|
|
|
3096
3096
|
[[package]]
|
|
3097
3097
|
name = "statsig-pyo3"
|
|
3098
|
-
version = "0.24.
|
|
3098
|
+
version = "0.24.1-rc.2610302338"
|
|
3099
3099
|
dependencies = [
|
|
3100
3100
|
"async-trait",
|
|
3101
3101
|
"lazy_static",
|
|
@@ -3110,7 +3110,7 @@ dependencies = [
|
|
|
3110
3110
|
|
|
3111
3111
|
[[package]]
|
|
3112
3112
|
name = "statsig-rust"
|
|
3113
|
-
version = "0.24.
|
|
3113
|
+
version = "0.24.1-rc.2610302338"
|
|
3114
3114
|
dependencies = [
|
|
3115
3115
|
"ahash",
|
|
3116
3116
|
"arc-swap",
|
|
@@ -3164,7 +3164,7 @@ dependencies = [
|
|
|
3164
3164
|
|
|
3165
3165
|
[[package]]
|
|
3166
3166
|
name = "statsig_elixir"
|
|
3167
|
-
version = "0.24.
|
|
3167
|
+
version = "0.24.1-rc.2610302338"
|
|
3168
3168
|
dependencies = [
|
|
3169
3169
|
"async-trait",
|
|
3170
3170
|
"parking_lot",
|
|
@@ -3177,7 +3177,7 @@ dependencies = [
|
|
|
3177
3177
|
|
|
3178
3178
|
[[package]]
|
|
3179
3179
|
name = "statsig_ffi"
|
|
3180
|
-
version = "0.24.
|
|
3180
|
+
version = "0.24.1-rc.2610302338"
|
|
3181
3181
|
dependencies = [
|
|
3182
3182
|
"async-trait",
|
|
3183
3183
|
"cbindgen",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: statsig_python_core
|
|
3
|
-
Version: 0.24.
|
|
3
|
+
Version: 0.24.1rc2610302338
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
{statsig_python_core-0.24.0 → statsig_python_core-0.24.1rc2610302338}/statsig-rust/Cargo.toml
RENAMED
|
@@ -44,7 +44,7 @@ serde_json = { version = "1.0.143", features = [
|
|
|
44
44
|
] }
|
|
45
45
|
serde_with = "3.4.0"
|
|
46
46
|
sha2 = "0.10.8"
|
|
47
|
-
sigstat-grpc = { path = "../statsig-grpc", version = "0.24.
|
|
47
|
+
sigstat-grpc = { path = "../statsig-grpc", version = "0.24.1-rc.2610302338", optional = true }
|
|
48
48
|
simple_logger = { version = "5.0.0" }
|
|
49
49
|
tempfile = "3.8.1"
|
|
50
50
|
tokio = { version = "1.39.1", features = ["full"] }
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//! Experimental APIs.
|
|
2
|
+
//!
|
|
3
|
+
//! Everything under `statsig_rust::experimental` is unstable. It may change
|
|
4
|
+
//! shape or be removed in any release without a major version bump, and it
|
|
5
|
+
//! is not covered by the SDK's compatibility guarantees. The `experimental`
|
|
6
|
+
//! segment is deliberately part of every import path so that call sites make
|
|
7
|
+
//! the dependency explicit:
|
|
8
|
+
//!
|
|
9
|
+
//! ```ignore
|
|
10
|
+
//! use statsig_rust::experimental::{
|
|
11
|
+
//! ForwardProxyEnrichmentOptions, ForwardProxyUserEnrichmentProvider, StatsigFPUserBuilder,
|
|
12
|
+
//! };
|
|
13
|
+
//! ```
|
|
14
|
+
|
|
15
|
+
pub mod user_enrichment;
|
|
16
|
+
|
|
17
|
+
pub use user_enrichment::{
|
|
18
|
+
EnrichmentError, ForwardProxyEnrichmentOptions, ForwardProxyUserEnrichmentProvider,
|
|
19
|
+
IDListEnrichmentProvider, IdListLookups, IdListMemberships, StatsigFPUserBuilder,
|
|
20
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
use super::{EnrichmentError, IDListEnrichmentProvider, IdListLookups, IdListMemberships};
|
|
2
|
+
use crate::networking::network_error::NetworkError;
|
|
3
|
+
use crate::networking::proxy_config::ProxyConfig;
|
|
4
|
+
use crate::networking::{NetworkClient, RequestArgs};
|
|
5
|
+
use crate::statsig_metadata::StatsigMetadata;
|
|
6
|
+
use crate::StatsigErr;
|
|
7
|
+
use async_trait::async_trait;
|
|
8
|
+
use flate2::{write::GzEncoder, Compression};
|
|
9
|
+
use serde::{Deserialize, Serialize};
|
|
10
|
+
use std::collections::HashMap;
|
|
11
|
+
use std::io::Write;
|
|
12
|
+
use std::time::Duration;
|
|
13
|
+
|
|
14
|
+
const DEFAULT_TIMEOUT_MS: u64 = 100;
|
|
15
|
+
const DEFAULT_RETRIES: u32 = 1;
|
|
16
|
+
const ENRICHMENT_PATH: &str = "/v1/user_enrichment";
|
|
17
|
+
|
|
18
|
+
#[derive(Clone, Debug, Default)]
|
|
19
|
+
pub struct ForwardProxyEnrichmentOptions {
|
|
20
|
+
/// Base URL of the Statsig forward proxy.
|
|
21
|
+
pub url: String,
|
|
22
|
+
pub timeout_ms: Option<u64>,
|
|
23
|
+
pub retries: Option<u32>,
|
|
24
|
+
/// Optional egress proxy and custom CA configuration. This is independent
|
|
25
|
+
/// of the destination forward-proxy URL.
|
|
26
|
+
pub proxy_config: Option<ProxyConfig>,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
pub struct ForwardProxyUserEnrichmentProvider {
|
|
30
|
+
network: NetworkClient,
|
|
31
|
+
endpoint: String,
|
|
32
|
+
timeout: Duration,
|
|
33
|
+
retries: u32,
|
|
34
|
+
proxy_config: Option<ProxyConfig>,
|
|
35
|
+
ca_cert_pem: Option<Vec<u8>>,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
impl ForwardProxyUserEnrichmentProvider {
|
|
39
|
+
pub fn new(sdk_key: &str, options: ForwardProxyEnrichmentOptions) -> Result<Self, StatsigErr> {
|
|
40
|
+
let base_url = options.url.trim().trim_end_matches('/');
|
|
41
|
+
if base_url.is_empty() {
|
|
42
|
+
return Err(StatsigErr::InvalidOperation(
|
|
43
|
+
"ForwardProxyEnrichmentOptions.url is required".to_string(),
|
|
44
|
+
));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
let ca_cert_pem = options
|
|
48
|
+
.proxy_config
|
|
49
|
+
.as_ref()
|
|
50
|
+
.and_then(|config| config.ca_cert_path.as_ref())
|
|
51
|
+
.filter(|path| !path.is_empty())
|
|
52
|
+
.map(std::fs::read)
|
|
53
|
+
.transpose()
|
|
54
|
+
.map_err(|error| {
|
|
55
|
+
StatsigErr::FileError(format!(
|
|
56
|
+
"Failed to read forward-proxy enrichment CA certificate: {error}"
|
|
57
|
+
))
|
|
58
|
+
})?;
|
|
59
|
+
|
|
60
|
+
let network = NetworkClient::new(
|
|
61
|
+
sdk_key,
|
|
62
|
+
Some(StatsigMetadata::get_constant_request_headers(sdk_key, None)),
|
|
63
|
+
None,
|
|
64
|
+
)
|
|
65
|
+
.mute_network_error_log()
|
|
66
|
+
.fail_fast_on_client_error();
|
|
67
|
+
|
|
68
|
+
Ok(Self {
|
|
69
|
+
network,
|
|
70
|
+
endpoint: format!("{base_url}{ENRICHMENT_PATH}"),
|
|
71
|
+
timeout: Duration::from_millis(options.timeout_ms.unwrap_or(DEFAULT_TIMEOUT_MS)),
|
|
72
|
+
retries: options.retries.unwrap_or(DEFAULT_RETRIES),
|
|
73
|
+
proxy_config: options.proxy_config,
|
|
74
|
+
ca_cert_pem,
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
pub fn endpoint(&self) -> &str {
|
|
79
|
+
&self.endpoint
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
#[derive(Serialize)]
|
|
84
|
+
struct EnrichmentRequest<'a> {
|
|
85
|
+
id_list_lookups: &'a IdListLookups,
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
#[derive(Deserialize)]
|
|
89
|
+
struct EnrichmentResponse {
|
|
90
|
+
id_lists: IdListMemberships,
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
#[async_trait]
|
|
94
|
+
impl IDListEnrichmentProvider for ForwardProxyUserEnrichmentProvider {
|
|
95
|
+
async fn resolve_id_list_memberships(
|
|
96
|
+
&self,
|
|
97
|
+
lookups: &IdListLookups,
|
|
98
|
+
) -> Result<IdListMemberships, EnrichmentError> {
|
|
99
|
+
let serialized = serde_json::to_vec(&EnrichmentRequest {
|
|
100
|
+
id_list_lookups: lookups,
|
|
101
|
+
})
|
|
102
|
+
.map_err(|error| EnrichmentError::Transport(error.to_string()))?;
|
|
103
|
+
// Forward proxy accepts gzip, including when the SDK uses zstd for other endpoints.
|
|
104
|
+
let mut encoder = GzEncoder::new(Vec::new(), Compression::default());
|
|
105
|
+
encoder
|
|
106
|
+
.write_all(&serialized)
|
|
107
|
+
.map_err(|error| EnrichmentError::Transport(error.to_string()))?;
|
|
108
|
+
let body = encoder
|
|
109
|
+
.finish()
|
|
110
|
+
.map_err(|error| EnrichmentError::Transport(error.to_string()))?;
|
|
111
|
+
|
|
112
|
+
let request_args = RequestArgs {
|
|
113
|
+
url: self.endpoint.clone(),
|
|
114
|
+
retries: self.retries,
|
|
115
|
+
timeout_ms: self.timeout.as_millis().try_into().unwrap_or(u64::MAX),
|
|
116
|
+
accept_gzip_response: true,
|
|
117
|
+
headers: Some(HashMap::from([
|
|
118
|
+
("content-type".to_string(), "application/json".to_string()),
|
|
119
|
+
("content-encoding".to_string(), "gzip".to_string()),
|
|
120
|
+
])),
|
|
121
|
+
proxy_config: self.proxy_config.clone(),
|
|
122
|
+
ca_cert_pem: self.ca_cert_pem.clone(),
|
|
123
|
+
..RequestArgs::new()
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
let response = self
|
|
127
|
+
.network
|
|
128
|
+
.post(request_args, Some(body))
|
|
129
|
+
.await
|
|
130
|
+
.map_err(|error| map_network_error(error, self.timeout))?;
|
|
131
|
+
|
|
132
|
+
let mut data = response
|
|
133
|
+
.data
|
|
134
|
+
.ok_or_else(|| EnrichmentError::Decode("response contained no body".to_string()))?;
|
|
135
|
+
let response: EnrichmentResponse = data
|
|
136
|
+
.deserialize_into()
|
|
137
|
+
.map_err(|error| EnrichmentError::Decode(error.to_string()))?;
|
|
138
|
+
|
|
139
|
+
let mut memberships = response.id_lists;
|
|
140
|
+
for lookup in lookups {
|
|
141
|
+
memberships.entry(lookup.clone()).or_default();
|
|
142
|
+
}
|
|
143
|
+
Ok(memberships)
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
fn provider_name(&self) -> &'static str {
|
|
147
|
+
"forward_proxy"
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
fn endpoint(&self) -> &str {
|
|
151
|
+
&self.endpoint
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
fn map_network_error(error: NetworkError, timeout: Duration) -> EnrichmentError {
|
|
156
|
+
let status = match &error {
|
|
157
|
+
NetworkError::RequestFailed(_, status, _)
|
|
158
|
+
| NetworkError::RetriesExhausted(_, status, _, _)
|
|
159
|
+
| NetworkError::RequestNotRetryable(_, status, _) => *status,
|
|
160
|
+
_ => None,
|
|
161
|
+
};
|
|
162
|
+
if let Some(status) = status {
|
|
163
|
+
return EnrichmentError::Http(status);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if matches!(error, NetworkError::RequestTimedOut(_)) {
|
|
167
|
+
EnrichmentError::Timeout(timeout)
|
|
168
|
+
} else {
|
|
169
|
+
EnrichmentError::Transport(error.to_string())
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
use super::{EnrichmentError, IDListEnrichmentProvider, IdListLookups};
|
|
2
|
+
use crate::evaluation::evaluator::id_list_lookup_id;
|
|
3
|
+
use crate::hashing::HashUtil;
|
|
4
|
+
use crate::user::unit_id::UnitID;
|
|
5
|
+
use crate::user::user_data::{UserData, UserDataMap, UserDataStringMap};
|
|
6
|
+
use crate::{DynamicValue, StatsigUser, StatsigUserBuilder};
|
|
7
|
+
use std::collections::HashSet;
|
|
8
|
+
use std::sync::{Arc, OnceLock};
|
|
9
|
+
|
|
10
|
+
static LOOKUP_HASHER: OnceLock<HashUtil> = OnceLock::new();
|
|
11
|
+
|
|
12
|
+
pub struct StatsigFPUserBuilder {
|
|
13
|
+
inner: StatsigUserBuilder,
|
|
14
|
+
enricher: Arc<dyn IDListEnrichmentProvider>,
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
impl StatsigFPUserBuilder {
|
|
18
|
+
pub fn new_with_enricher(enricher: Arc<dyn IDListEnrichmentProvider>) -> Self {
|
|
19
|
+
Self {
|
|
20
|
+
inner: StatsigUserBuilder {
|
|
21
|
+
user_id: None,
|
|
22
|
+
custom_ids: None,
|
|
23
|
+
email: None,
|
|
24
|
+
ip: None,
|
|
25
|
+
user_agent: None,
|
|
26
|
+
country: None,
|
|
27
|
+
locale: None,
|
|
28
|
+
app_version: None,
|
|
29
|
+
custom: None,
|
|
30
|
+
private_attributes: None,
|
|
31
|
+
statsig_environment: None,
|
|
32
|
+
id_list_memberships: None,
|
|
33
|
+
},
|
|
34
|
+
enricher,
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/// Seeds the builder from already-deserialized user data. Used by the
|
|
39
|
+
/// language bindings, which cross the FFI boundary with a `UserData` JSON
|
|
40
|
+
/// payload rather than individual setter calls.
|
|
41
|
+
pub fn from_user_data(enricher: Arc<dyn IDListEnrichmentProvider>, data: UserData) -> Self {
|
|
42
|
+
let mut builder = Self::new_with_enricher(enricher);
|
|
43
|
+
builder = builder.user_id(data.user_id.and_then(dyn_to_unit_id));
|
|
44
|
+
if let Some(custom_ids) = data.custom_ids {
|
|
45
|
+
let mapped: Vec<(String, UnitID)> = custom_ids
|
|
46
|
+
.into_iter()
|
|
47
|
+
.filter_map(|(key, value)| dyn_to_unit_id(value).map(|id| (key, id)))
|
|
48
|
+
.collect();
|
|
49
|
+
builder = builder.custom_ids(Some(mapped));
|
|
50
|
+
}
|
|
51
|
+
builder = builder
|
|
52
|
+
.email(dyn_to_string(data.email))
|
|
53
|
+
.ip(dyn_to_string(data.ip))
|
|
54
|
+
.user_agent(dyn_to_string(data.user_agent))
|
|
55
|
+
.country(dyn_to_string(data.country))
|
|
56
|
+
.locale(dyn_to_string(data.locale))
|
|
57
|
+
.app_version(dyn_to_string(data.app_version))
|
|
58
|
+
.custom(data.custom)
|
|
59
|
+
.private_attributes(data.private_attributes);
|
|
60
|
+
if let Some(environment) = data.statsig_environment {
|
|
61
|
+
let mapped = environment
|
|
62
|
+
.into_iter()
|
|
63
|
+
.filter_map(|(key, value)| dyn_to_string(Some(value)).map(|id| (key, id)))
|
|
64
|
+
.collect();
|
|
65
|
+
builder = builder.statsig_environment(Some(mapped));
|
|
66
|
+
}
|
|
67
|
+
builder
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
pub fn user_id(mut self, user_id: Option<impl Into<UnitID>>) -> Self {
|
|
71
|
+
self.inner = self.inner.user_id(user_id);
|
|
72
|
+
self
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
pub fn custom_ids<K, U, I>(mut self, custom_ids: Option<I>) -> Self
|
|
76
|
+
where
|
|
77
|
+
I: IntoIterator<Item = (K, U)>,
|
|
78
|
+
K: Into<String>,
|
|
79
|
+
U: Into<UnitID>,
|
|
80
|
+
{
|
|
81
|
+
self.inner = self.inner.custom_ids(custom_ids);
|
|
82
|
+
self
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
pub fn email(mut self, email: Option<String>) -> Self {
|
|
86
|
+
self.inner = self.inner.email(email);
|
|
87
|
+
self
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
pub fn ip(mut self, ip: Option<String>) -> Self {
|
|
91
|
+
self.inner = self.inner.ip(ip);
|
|
92
|
+
self
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
pub fn user_agent(mut self, user_agent: Option<String>) -> Self {
|
|
96
|
+
self.inner = self.inner.user_agent(user_agent);
|
|
97
|
+
self
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
pub fn country(mut self, country: Option<String>) -> Self {
|
|
101
|
+
self.inner = self.inner.country(country);
|
|
102
|
+
self
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
pub fn locale(mut self, locale: Option<String>) -> Self {
|
|
106
|
+
self.inner = self.inner.locale(locale);
|
|
107
|
+
self
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
pub fn app_version(mut self, app_version: Option<String>) -> Self {
|
|
111
|
+
self.inner = self.inner.app_version(app_version);
|
|
112
|
+
self
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
pub fn statsig_environment(mut self, statsig_environment: Option<UserDataStringMap>) -> Self {
|
|
116
|
+
self.inner = self.inner.statsig_environment(statsig_environment);
|
|
117
|
+
self
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
pub fn custom_from_str_map(mut self, custom: Option<UserDataStringMap>) -> Self {
|
|
121
|
+
self.inner = self.inner.custom_from_str_map(custom);
|
|
122
|
+
self
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
pub fn custom(mut self, custom: Option<UserDataMap>) -> Self {
|
|
126
|
+
self.inner = self.inner.custom(custom);
|
|
127
|
+
self
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
pub fn private_attributes_from_str_map(
|
|
131
|
+
mut self,
|
|
132
|
+
private_attributes: Option<UserDataStringMap>,
|
|
133
|
+
) -> Self {
|
|
134
|
+
self.inner = self
|
|
135
|
+
.inner
|
|
136
|
+
.private_attributes_from_str_map(private_attributes);
|
|
137
|
+
self
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
pub fn private_attributes(mut self, private_attributes: Option<UserDataMap>) -> Self {
|
|
141
|
+
self.inner = self.inner.private_attributes(private_attributes);
|
|
142
|
+
self
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/// One enrichment round trip. `Ok` means memberships were written (including
|
|
146
|
+
/// an empty map). `Err` is the provider error; no user is returned.
|
|
147
|
+
pub async fn build(self) -> Result<StatsigUser, EnrichmentError> {
|
|
148
|
+
let mut user = self.inner.build();
|
|
149
|
+
let lookups = collect_id_list_lookups(&user);
|
|
150
|
+
|
|
151
|
+
let memberships = self.enricher.resolve_id_list_memberships(&lookups).await?;
|
|
152
|
+
Arc::make_mut(&mut user.data).id_list_memberships = Some(memberships);
|
|
153
|
+
Ok(user)
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
fn collect_id_list_lookups(user: &StatsigUser) -> IdListLookups {
|
|
158
|
+
let hashing = LOOKUP_HASHER.get_or_init(HashUtil::new);
|
|
159
|
+
let mut lookups = HashSet::new();
|
|
160
|
+
|
|
161
|
+
if let Some(user_id) = user
|
|
162
|
+
.data
|
|
163
|
+
.user_id
|
|
164
|
+
.as_ref()
|
|
165
|
+
.and_then(|value| value.string_value.as_ref())
|
|
166
|
+
{
|
|
167
|
+
lookups.insert(id_list_lookup_id(hashing, &user_id.value));
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if let Some(custom_ids) = &user.data.custom_ids {
|
|
171
|
+
for value in custom_ids.values() {
|
|
172
|
+
if let Some(id) = &value.string_value {
|
|
173
|
+
lookups.insert(id_list_lookup_id(hashing, &id.value));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
let mut lookups: Vec<_> = lookups.into_iter().collect();
|
|
179
|
+
lookups.sort_unstable();
|
|
180
|
+
lookups
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
fn dyn_to_unit_id(value: DynamicValue) -> Option<UnitID> {
|
|
184
|
+
// DynamicValue caches numeric interpretations even for strings. The original
|
|
185
|
+
// JSON variant is the authority for preserving IDs such as "00123".
|
|
186
|
+
match value.json_value {
|
|
187
|
+
serde_json::Value::String(s) => Some(UnitID::String(s)),
|
|
188
|
+
serde_json::Value::Number(n) => n
|
|
189
|
+
.as_i64()
|
|
190
|
+
.map(UnitID::Int)
|
|
191
|
+
.or_else(|| n.as_f64().map(UnitID::Float)),
|
|
192
|
+
_ => None,
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
fn dyn_to_string(value: Option<DynamicValue>) -> Option<String> {
|
|
197
|
+
value.and_then(|dynamic| dynamic.string_value.map(|s| s.value.to_string()))
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// A provider-local TTL membership cache can wrap
|
|
201
|
+
// `IDListEnrichmentProvider` without changing this builder's API.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//! **Experimental.** Forward-proxy user enrichment: resolve a user's ID-list
|
|
2
|
+
//! memberships via `POST /v1/user_enrichment` on a Statsig forward proxy and
|
|
3
|
+
//! attach them to a `StatsigUser` so the evaluator can answer ID-list
|
|
4
|
+
//! conditions without holding the lists in memory.
|
|
5
|
+
//!
|
|
6
|
+
//! This API is unstable and may change without notice. See
|
|
7
|
+
//! [`crate::experimental`].
|
|
8
|
+
|
|
9
|
+
use async_trait::async_trait;
|
|
10
|
+
use std::collections::{HashMap, HashSet};
|
|
11
|
+
use std::fmt::{Display, Formatter};
|
|
12
|
+
use std::time::Duration;
|
|
13
|
+
|
|
14
|
+
pub mod forward_proxy;
|
|
15
|
+
pub mod fp_user_builder;
|
|
16
|
+
|
|
17
|
+
pub use forward_proxy::{ForwardProxyEnrichmentOptions, ForwardProxyUserEnrichmentProvider};
|
|
18
|
+
pub use fp_user_builder::StatsigFPUserBuilder;
|
|
19
|
+
|
|
20
|
+
/// Hashed unit identifiers sent to an enrichment provider.
|
|
21
|
+
pub type IdListLookups = Vec<String>;
|
|
22
|
+
|
|
23
|
+
/// Lookup ID to every ID-list name containing that lookup.
|
|
24
|
+
pub type IdListMemberships = HashMap<String, HashSet<String>>;
|
|
25
|
+
|
|
26
|
+
#[derive(Clone, Debug, PartialEq, Eq)]
|
|
27
|
+
pub enum EnrichmentError {
|
|
28
|
+
Timeout(Duration),
|
|
29
|
+
Http(u16),
|
|
30
|
+
Transport(String),
|
|
31
|
+
Decode(String),
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
impl Display for EnrichmentError {
|
|
35
|
+
fn fmt(&self, formatter: &mut Formatter<'_>) -> std::fmt::Result {
|
|
36
|
+
match self {
|
|
37
|
+
Self::Timeout(duration) => {
|
|
38
|
+
write!(formatter, "enrichment request timed out after {duration:?}")
|
|
39
|
+
}
|
|
40
|
+
Self::Http(status) => write!(formatter, "enrichment request returned HTTP {status}"),
|
|
41
|
+
Self::Transport(message) => write!(formatter, "enrichment transport failed: {message}"),
|
|
42
|
+
Self::Decode(message) => {
|
|
43
|
+
write!(formatter, "enrichment response decode failed: {message}")
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
impl std::error::Error for EnrichmentError {}
|
|
50
|
+
|
|
51
|
+
#[allow(
|
|
52
|
+
clippy::double_must_use,
|
|
53
|
+
reason = "async_trait adds must_use to methods returning an already-must-use boxed Future"
|
|
54
|
+
)]
|
|
55
|
+
#[async_trait]
|
|
56
|
+
pub trait IDListEnrichmentProvider: Send + Sync {
|
|
57
|
+
/// Resolves hashed lookup IDs. Implementations must return an error rather
|
|
58
|
+
/// than fabricating an empty membership map when transport or decoding
|
|
59
|
+
/// fails.
|
|
60
|
+
async fn resolve_id_list_memberships(
|
|
61
|
+
&self,
|
|
62
|
+
lookups: &IdListLookups,
|
|
63
|
+
) -> Result<IdListMemberships, EnrichmentError>;
|
|
64
|
+
|
|
65
|
+
fn provider_name(&self) -> &'static str {
|
|
66
|
+
"custom"
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
fn endpoint(&self) -> &str {
|
|
70
|
+
""
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -1617,7 +1617,7 @@ async fn incomplete_http_startup_is_atomic_only_for_opted_in_snapshots() {
|
|
|
1617
1617
|
.await
|
|
1618
1618
|
.is_err());
|
|
1619
1619
|
assert!(
|
|
1620
|
-
listener.contains("a", "2Tv4fIVX")
|
|
1620
|
+
listener.contains("a", "2Tv4fIVX") != supported,
|
|
1621
1621
|
"snapshot opt-in={supported}, initializer failure={initialize_fails}"
|
|
1622
1622
|
);
|
|
1623
1623
|
assert!(!listener.contains("b", "2Tv4fIVX"));
|
|
@@ -96,6 +96,8 @@ impl RequestArgs {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
pub struct Response {
|
|
99
|
+
/// Transport timeout reported by the HTTP implementation, never inferred from error text.
|
|
100
|
+
pub is_timeout: bool,
|
|
99
101
|
pub status_code: Option<u16>,
|
|
100
102
|
pub data: Option<ResponseData>,
|
|
101
103
|
pub error: Option<String>,
|
|
@@ -52,6 +52,7 @@ pub struct NetworkClient {
|
|
|
52
52
|
proxy_config: Option<ProxyConfig>,
|
|
53
53
|
ca_cert_pem: Option<Vec<u8>>,
|
|
54
54
|
silent_on_network_failure: bool,
|
|
55
|
+
fail_fast_on_client_error: bool,
|
|
55
56
|
disable_file_streaming: bool,
|
|
56
57
|
log_event_connection_reuse: bool,
|
|
57
58
|
loggable_sdk_key: String,
|
|
@@ -106,6 +107,7 @@ impl NetworkClient {
|
|
|
106
107
|
proxy_config,
|
|
107
108
|
ca_cert_pem,
|
|
108
109
|
silent_on_network_failure: false,
|
|
110
|
+
fail_fast_on_client_error: false,
|
|
109
111
|
disable_file_streaming: options
|
|
110
112
|
.map(|opts| opts.disable_disk_access.unwrap_or(false))
|
|
111
113
|
.unwrap_or(false),
|
|
@@ -219,7 +221,16 @@ impl NetworkClient {
|
|
|
219
221
|
}
|
|
220
222
|
};
|
|
221
223
|
|
|
222
|
-
|
|
224
|
+
// Enrichment retries successful headers followed by a failed body read.
|
|
225
|
+
// Keep other clients' historical response handling unchanged.
|
|
226
|
+
let body_failed = self.fail_fast_on_client_error
|
|
227
|
+
&& response.error.is_some()
|
|
228
|
+
&& (200..300).contains(&response.status_code.unwrap_or(0));
|
|
229
|
+
let status = if body_failed {
|
|
230
|
+
None
|
|
231
|
+
} else {
|
|
232
|
+
response.status_code
|
|
233
|
+
};
|
|
223
234
|
let raw_error_message = response
|
|
224
235
|
.error
|
|
225
236
|
.clone()
|
|
@@ -299,7 +310,12 @@ impl NetworkClient {
|
|
|
299
310
|
return Err(error);
|
|
300
311
|
}
|
|
301
312
|
|
|
302
|
-
|
|
313
|
+
let status_code = status.unwrap_or(0);
|
|
314
|
+
if NON_RETRY_CODES.contains(&status_code)
|
|
315
|
+
|| (self.fail_fast_on_client_error
|
|
316
|
+
&& (400..500).contains(&status_code)
|
|
317
|
+
&& status_code != 408)
|
|
318
|
+
{
|
|
303
319
|
let error = NetworkError::RequestNotRetryable(
|
|
304
320
|
request_args.url.clone(),
|
|
305
321
|
status,
|
|
@@ -310,12 +326,17 @@ impl NetworkClient {
|
|
|
310
326
|
}
|
|
311
327
|
|
|
312
328
|
if attempt >= request_args.retries {
|
|
313
|
-
let error =
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
329
|
+
let error =
|
|
330
|
+
if self.fail_fast_on_client_error && response.is_timeout && status.is_none() {
|
|
331
|
+
NetworkError::RequestTimedOut(request_args.url.clone())
|
|
332
|
+
} else {
|
|
333
|
+
NetworkError::RetriesExhausted(
|
|
334
|
+
request_args.url.clone(),
|
|
335
|
+
status,
|
|
336
|
+
attempt + 1,
|
|
337
|
+
error_message,
|
|
338
|
+
)
|
|
339
|
+
};
|
|
319
340
|
self.log_warning(&error, &request_args);
|
|
320
341
|
return Err(error);
|
|
321
342
|
}
|
|
@@ -341,6 +362,13 @@ impl NetworkClient {
|
|
|
341
362
|
self
|
|
342
363
|
}
|
|
343
364
|
|
|
365
|
+
/// Opt in to failing immediately on client errors, except request timeouts.
|
|
366
|
+
/// Other clients retain the existing retry policy.
|
|
367
|
+
pub(crate) fn fail_fast_on_client_error(mut self) -> Self {
|
|
368
|
+
self.fail_fast_on_client_error = true;
|
|
369
|
+
self
|
|
370
|
+
}
|
|
371
|
+
|
|
344
372
|
// Logging helpers
|
|
345
373
|
fn log_warning(&self, error: &NetworkError, args: &RequestArgs) {
|
|
346
374
|
let exception = error.name();
|
|
@@ -8,6 +8,7 @@ type RequestUrl = String;
|
|
|
8
8
|
#[derive(PartialEq, Debug, Clone, Serialize)]
|
|
9
9
|
pub enum NetworkError {
|
|
10
10
|
ShutdownError(RequestUrl),
|
|
11
|
+
RequestTimedOut(RequestUrl),
|
|
11
12
|
DisableNetworkOn(RequestUrl),
|
|
12
13
|
SerializationError(RequestUrl, String),
|
|
13
14
|
|
|
@@ -19,6 +20,7 @@ pub enum NetworkError {
|
|
|
19
20
|
impl NetworkError {
|
|
20
21
|
pub fn name(&self) -> &'static str {
|
|
21
22
|
match self {
|
|
23
|
+
NetworkError::RequestTimedOut(_) => "RequestTimedOut",
|
|
22
24
|
NetworkError::ShutdownError(_) => "ShutdownError",
|
|
23
25
|
NetworkError::DisableNetworkOn(_) => "DisableNetworkOn",
|
|
24
26
|
NetworkError::SerializationError(_, _) => "SerializationError",
|
|
@@ -32,6 +34,9 @@ impl NetworkError {
|
|
|
32
34
|
impl fmt::Display for NetworkError {
|
|
33
35
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
34
36
|
match self {
|
|
37
|
+
NetworkError::RequestTimedOut(url) => {
|
|
38
|
+
write!(f, "RequestTimedOut: {}", sanitize_secret_key(url))
|
|
39
|
+
}
|
|
35
40
|
NetworkError::ShutdownError(url) => {
|
|
36
41
|
let url = sanitize_secret_key(url);
|
|
37
42
|
write!(f, "ShutdownError: {url}")
|