statsig-python-core 0.16.0__tar.gz → 0.16.1__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.16.0 → statsig_python_core-0.16.1}/Cargo.lock +6 -6
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/Cargo.toml +1 -1
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/PKG-INFO +1 -1
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/Cargo.toml +1 -1
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +81 -16
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +2 -2
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +216 -9
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/statsig_metadata.rs +1 -1
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/observability_client_usage_tests.rs +241 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/py_src/statsig_python_core/__init__.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/py_src/statsig_python_core/data_store.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/py_src/statsig_python_core/error_boundary.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/py_src/statsig_python_core/observability_client.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/py_src/statsig_python_core/output_logger_provider.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/py_src/statsig_python_core/persistent_storage.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/py_src/statsig_python_core/py.typed +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/py_src/statsig_python_core/requirements.txt +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/py_src/statsig_python_core/statsig.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/py_src/statsig_python_core/statsig_python_core.pyi +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/py_src/statsig_python_core/statsig_types.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/pyproject.toml +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-grpc/Cargo.toml +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-grpc/README.md +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-grpc/build.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-grpc/src/lib.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-grpc/src/protos/statsig_forward_proxy.proto +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-grpc/src/statsig_grpc_client.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-grpc/src/statsig_grpc_err.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/.github/workflows/CI.yml +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/.gitignore +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/Cargo.toml +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/README.md +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/py_src/statsig_python_core/__init__.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/py_src/statsig_python_core/data_store.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/py_src/statsig_python_core/error_boundary.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/py_src/statsig_python_core/observability_client.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/py_src/statsig_python_core/output_logger_provider.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/py_src/statsig_python_core/persistent_storage.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/py_src/statsig_python_core/py.typed +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/py_src/statsig_python_core/requirements.txt +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/py_src/statsig_python_core/statsig.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/py_src/statsig_python_core/statsig_python_core.pyi +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/py_src/statsig_python_core/statsig_types.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/data_store_base_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/interned_store_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/lib.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/pyo_utils.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/safe_gil.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/statsig_base_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/statsig_options_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/statsig_types_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/statsig_user_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/unit_id_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/fork_runner.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/mock_scrapi.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_data_store.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_error_boundary.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_experiment_serialization.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_feature_gate_serialization.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_forking.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_get_dynamic_config.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_layer_serialization.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_observability_client.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_override_adapter.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_performance.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_shutdown.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_statsig.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_statsig_options.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_statsig_user.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_statsig_user_json_serialization.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/test_user_exposure_e2e.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-pyo3/tests/utils.py +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/build.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/resources/ip_supalite.table +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/__tests__/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/__tests__/spec_store_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/compression/compression_helper.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/compression/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/console_capture/console_capture_handler.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/console_capture/console_capture_instances.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/console_capture/console_capture_options.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/console_capture/console_log_line_levels.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/console_capture/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/data_store_interface.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/dcs_str.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/dynamic_returnable.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/evaluation_types_initialize_v2.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/evaluator.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/evaluator_context.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/evaluator_result.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/secondary_exposure_key.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_logger.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_queue/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_queue/queued_expo.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/exposure_sampling.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/flush_type.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/gcir/dynamic_configs_processor.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/gcir/gcir_options.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/gcir/gcir_process_iter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/gcir/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/global_configs.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/hashing/ahash.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/hashing/djb2.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/hashing/hash_util.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/hashing/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/init_details.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/initialize_response.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/initialize_v2_response.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/instance_registry.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/interned_string.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/interned_values/__tests__/interned_store_eval_value_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/interned_values/__tests__/interned_store_returnable_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/interned_values/__tests__/interned_store_string_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/interned_values/__tests__/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/interned_values/interned_store.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/interned_values/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/lib.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/logging_utils.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/macros.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/networking/http_types.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/networking/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/networking/network_client.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/networking/network_error.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/networking/providers/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/networking/providers/net_provider_noop.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/networking/proxy_config.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/observability/console_capture_observer.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/observability/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/observability/ops_stats.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/output_logger.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/override_adapter/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/persistent_storage/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/sdk_diagnostics/marker.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/sdk_event_emitter/event_types.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/spec_store.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_adapter/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/__tests__/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/__tests__/proto_specs_syncing_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/__tests__/proto_specs_unknown_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/__tests__/proto_specs_vs_json_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/__tests__/proto_stream_reader_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/explicit_params.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/proto_specs.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/proto_stream_reader.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/spec_types.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/specs_hash_map.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/specs_response/statsig_config_specs.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/statsig.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/statsig_core_api_options.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/statsig_err.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/statsig_global.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/statsig_options.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/statsig_runtime.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/statsig_type_factories.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/statsig_types.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/statsig_types_raw.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/user/into_optional.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/user/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/user/statsig_user.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/user/statsig_user_builder.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/user/statsig_user_internal.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/user/statsig_user_loggable.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/user/unit_id.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/user/user_data.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/src/utils/mod.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/check_gate_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/customized_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/big_number_dcs.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/company_id_list +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/dcs_error.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/dcs_non_case_sensitive.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/dcs_user_agent_versions.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/demo_proj_dcs.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/eval_proj_dcs.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/get_id_lists.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/perf_proj_dcs.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/test_user_agents.txt +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/ua_string_cases.json +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data/unknown_enum.pb.br +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/direct_gcir_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/event_logger_usage_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/expected_evaluation_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/exposure_sampling_key_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/exposure_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/flushing_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/gcir_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/global_configs_test.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/instance_registry_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/list_methods_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/network_client_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/network_failure_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/output_logger_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/override_adapter_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/perf_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/proto_specs_usage_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/spec_store_lock_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/spec_types_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_environment_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_event_emitter_usage_test.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_global_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_options_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_user_builder_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_user_loggable_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/statsig_user_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/typed_getters_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/user_json_tests.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/utils/helpers.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/utils/mock_data_store.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/utils/mock_log_provider.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/utils/mock_specs_adapter.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
- {statsig_python_core-0.16.0 → statsig_python_core-0.16.1}/statsig-rust/tests/utils/mod.rs +0 -0
|
@@ -2553,7 +2553,7 @@ dependencies = [
|
|
|
2553
2553
|
|
|
2554
2554
|
[[package]]
|
|
2555
2555
|
name = "sigstat-grpc"
|
|
2556
|
-
version = "0.16.
|
|
2556
|
+
version = "0.16.1"
|
|
2557
2557
|
dependencies = [
|
|
2558
2558
|
"async-trait",
|
|
2559
2559
|
"chrono",
|
|
@@ -2627,7 +2627,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
|
|
|
2627
2627
|
|
|
2628
2628
|
[[package]]
|
|
2629
2629
|
name = "statsig-node"
|
|
2630
|
-
version = "0.16.
|
|
2630
|
+
version = "0.16.1"
|
|
2631
2631
|
dependencies = [
|
|
2632
2632
|
"async-trait",
|
|
2633
2633
|
"napi",
|
|
@@ -2641,7 +2641,7 @@ dependencies = [
|
|
|
2641
2641
|
|
|
2642
2642
|
[[package]]
|
|
2643
2643
|
name = "statsig-pyo3"
|
|
2644
|
-
version = "0.16.
|
|
2644
|
+
version = "0.16.1"
|
|
2645
2645
|
dependencies = [
|
|
2646
2646
|
"async-trait",
|
|
2647
2647
|
"lazy_static",
|
|
@@ -2655,7 +2655,7 @@ dependencies = [
|
|
|
2655
2655
|
|
|
2656
2656
|
[[package]]
|
|
2657
2657
|
name = "statsig-rust"
|
|
2658
|
-
version = "0.16.
|
|
2658
|
+
version = "0.16.1"
|
|
2659
2659
|
dependencies = [
|
|
2660
2660
|
"ahash",
|
|
2661
2661
|
"arc-swap",
|
|
@@ -2701,7 +2701,7 @@ dependencies = [
|
|
|
2701
2701
|
|
|
2702
2702
|
[[package]]
|
|
2703
2703
|
name = "statsig_elixir"
|
|
2704
|
-
version = "0.16.
|
|
2704
|
+
version = "0.16.1"
|
|
2705
2705
|
dependencies = [
|
|
2706
2706
|
"async-trait",
|
|
2707
2707
|
"parking_lot",
|
|
@@ -2714,7 +2714,7 @@ dependencies = [
|
|
|
2714
2714
|
|
|
2715
2715
|
[[package]]
|
|
2716
2716
|
name = "statsig_ffi"
|
|
2717
|
-
version = "0.16.
|
|
2717
|
+
version = "0.16.1"
|
|
2718
2718
|
dependencies = [
|
|
2719
2719
|
"async-trait",
|
|
2720
2720
|
"cbindgen",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: statsig_python_core
|
|
3
|
-
Version: 0.16.
|
|
3
|
+
Version: 0.16.1
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -38,7 +38,7 @@ serde_json = { version = "1.0.143", features = [
|
|
|
38
38
|
] }
|
|
39
39
|
serde_with = "3.4.0"
|
|
40
40
|
sha2 = "0.10.8"
|
|
41
|
-
sigstat-grpc = { path = "../statsig-grpc", version = "0.16.
|
|
41
|
+
sigstat-grpc = { path = "../statsig-grpc", version = "0.16.1", optional = true }
|
|
42
42
|
simple_logger = { version = "5.0.0" }
|
|
43
43
|
tempfile = "3.8.1"
|
|
44
44
|
tokio = { version = "1.39.1", features = ["full"] }
|
|
@@ -11,6 +11,7 @@ use crate::{
|
|
|
11
11
|
log_d, log_e, log_error_to_statsig_and_console, StatsigErr, StatsigOptions, StatsigRuntime,
|
|
12
12
|
};
|
|
13
13
|
use async_trait::async_trait;
|
|
14
|
+
use chrono::Utc;
|
|
14
15
|
use parking_lot::RwLock;
|
|
15
16
|
use std::collections::HashMap;
|
|
16
17
|
use std::sync::{Arc, Weak};
|
|
@@ -25,6 +26,10 @@ const DEFAULT_ID_LIST_SYNC_INTERVAL_MS: u32 = 60_000;
|
|
|
25
26
|
type IdListsResponse = HashMap<String, IdListMetadata>;
|
|
26
27
|
|
|
27
28
|
const TAG: &str = stringify!(StatsigHttpIdListsAdapter);
|
|
29
|
+
const ID_LISTS_SYNC_OVERALL_LATENCY_METRIC: &str = "id_lists_sync_overall.latency";
|
|
30
|
+
const ID_LISTS_SYNC_OVERALL_MANIFEST_SUCCESS_TAG: &str = "id_list_manifest_success";
|
|
31
|
+
const ID_LISTS_SYNC_OVERALL_SUCCEED_SINGLE_ID_LIST_NUMBER_TAG: &str =
|
|
32
|
+
"succeed_single_id_list_number";
|
|
28
33
|
|
|
29
34
|
pub struct StatsigHttpIdListsAdapter {
|
|
30
35
|
id_lists_manifest_url: String,
|
|
@@ -318,8 +323,36 @@ impl StatsigHttpIdListsAdapter {
|
|
|
318
323
|
}
|
|
319
324
|
|
|
320
325
|
async fn sync_id_lists(&self) -> Result<(), StatsigErr> {
|
|
321
|
-
let
|
|
322
|
-
let
|
|
326
|
+
let sync_start_ms = Utc::now().timestamp_millis() as u64;
|
|
327
|
+
let mut id_list_manifest_success = false;
|
|
328
|
+
let mut successful_single_id_list_number = 0_u64;
|
|
329
|
+
|
|
330
|
+
let new_manifest = match self.fetch_id_list_manifests_from_network().await {
|
|
331
|
+
Ok(manifest) => {
|
|
332
|
+
id_list_manifest_success = true;
|
|
333
|
+
manifest
|
|
334
|
+
}
|
|
335
|
+
Err(e) => {
|
|
336
|
+
self.log_id_lists_sync_overall_latency(
|
|
337
|
+
sync_start_ms,
|
|
338
|
+
id_list_manifest_success,
|
|
339
|
+
successful_single_id_list_number,
|
|
340
|
+
);
|
|
341
|
+
return Err(e);
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
let curr_manifest = match self.get_current_id_list_metadata() {
|
|
346
|
+
Ok(manifest) => manifest,
|
|
347
|
+
Err(e) => {
|
|
348
|
+
self.log_id_lists_sync_overall_latency(
|
|
349
|
+
sync_start_ms,
|
|
350
|
+
id_list_manifest_success,
|
|
351
|
+
successful_single_id_list_number,
|
|
352
|
+
);
|
|
353
|
+
return Err(e);
|
|
354
|
+
}
|
|
355
|
+
};
|
|
323
356
|
|
|
324
357
|
let mut changes = HashMap::new();
|
|
325
358
|
|
|
@@ -370,17 +403,30 @@ impl StatsigHttpIdListsAdapter {
|
|
|
370
403
|
continue;
|
|
371
404
|
}
|
|
372
405
|
|
|
373
|
-
let
|
|
406
|
+
let single_id_list_download_result = self
|
|
374
407
|
.fetch_individual_id_list_changes_from_network(
|
|
375
408
|
&new_metadata.url,
|
|
376
409
|
changeset.range_start,
|
|
377
410
|
)
|
|
378
|
-
.await
|
|
411
|
+
.await;
|
|
412
|
+
|
|
413
|
+
let raw_changeset = match single_id_list_download_result {
|
|
414
|
+
Ok(raw_changeset) => raw_changeset,
|
|
415
|
+
Err(e) => {
|
|
416
|
+
self.log_id_lists_sync_overall_latency(
|
|
417
|
+
sync_start_ms,
|
|
418
|
+
id_list_manifest_success,
|
|
419
|
+
successful_single_id_list_number,
|
|
420
|
+
);
|
|
421
|
+
return Err(e);
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
successful_single_id_list_number += 1;
|
|
379
425
|
|
|
380
426
|
updates.insert(
|
|
381
427
|
list_name,
|
|
382
428
|
IdListUpdate {
|
|
383
|
-
raw_changeset: Some(
|
|
429
|
+
raw_changeset: Some(raw_changeset),
|
|
384
430
|
new_metadata,
|
|
385
431
|
},
|
|
386
432
|
);
|
|
@@ -416,17 +462,11 @@ impl StatsigHttpIdListsAdapter {
|
|
|
416
462
|
None,
|
|
417
463
|
);
|
|
418
464
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
self.ops_stats.log(ObservabilityEvent::new_event(
|
|
425
|
-
MetricType::Increment,
|
|
426
|
-
metric_name.to_string(),
|
|
427
|
-
metric_value,
|
|
428
|
-
None,
|
|
429
|
-
));
|
|
465
|
+
self.log_id_lists_sync_overall_latency(
|
|
466
|
+
sync_start_ms,
|
|
467
|
+
id_list_manifest_success,
|
|
468
|
+
successful_single_id_list_number,
|
|
469
|
+
);
|
|
430
470
|
|
|
431
471
|
result
|
|
432
472
|
}
|
|
@@ -466,6 +506,31 @@ impl StatsigHttpIdListsAdapter {
|
|
|
466
506
|
}
|
|
467
507
|
self.ops_stats.add_marker(marker, None);
|
|
468
508
|
}
|
|
509
|
+
|
|
510
|
+
fn log_id_lists_sync_overall_latency(
|
|
511
|
+
&self,
|
|
512
|
+
sync_start_ms: u64,
|
|
513
|
+
id_list_manifest_success: bool,
|
|
514
|
+
successful_single_id_list_number: u64,
|
|
515
|
+
) {
|
|
516
|
+
let latency_ms =
|
|
517
|
+
(Utc::now().timestamp_millis() as u64).saturating_sub(sync_start_ms) as f64;
|
|
518
|
+
self.ops_stats.log(ObservabilityEvent::new_event(
|
|
519
|
+
MetricType::Dist,
|
|
520
|
+
ID_LISTS_SYNC_OVERALL_LATENCY_METRIC.to_string(),
|
|
521
|
+
latency_ms,
|
|
522
|
+
Some(HashMap::from([
|
|
523
|
+
(
|
|
524
|
+
ID_LISTS_SYNC_OVERALL_MANIFEST_SUCCESS_TAG.to_string(),
|
|
525
|
+
id_list_manifest_success.to_string(),
|
|
526
|
+
),
|
|
527
|
+
(
|
|
528
|
+
ID_LISTS_SYNC_OVERALL_SUCCEED_SINGLE_ID_LIST_NUMBER_TAG.to_string(),
|
|
529
|
+
successful_single_id_list_number.to_string(),
|
|
530
|
+
),
|
|
531
|
+
])),
|
|
532
|
+
));
|
|
533
|
+
}
|
|
469
534
|
}
|
|
470
535
|
|
|
471
536
|
struct IdListChangeSet {
|
|
@@ -85,7 +85,7 @@ impl StatsigDataStoreSpecsAdapter {
|
|
|
85
85
|
data: ResponseData::from_bytes(update.result.unwrap_or_default().into_bytes()),
|
|
86
86
|
source: SpecsSource::Adapter("DataStore".to_string()),
|
|
87
87
|
received_at: Utc::now().timestamp_millis() as u64,
|
|
88
|
-
source_api:
|
|
88
|
+
source_api: Some("datastore".to_string()),
|
|
89
89
|
}) {
|
|
90
90
|
log_w!(TAG, "Failed to send specs update to listener: {e}");
|
|
91
91
|
}
|
|
@@ -122,7 +122,7 @@ impl SpecsAdapter for StatsigDataStoreSpecsAdapter {
|
|
|
122
122
|
data: ResponseData::from_bytes(data.into_bytes()),
|
|
123
123
|
source: SpecsSource::Adapter("DataStore".to_string()),
|
|
124
124
|
received_at: Utc::now().timestamp_millis() as u64,
|
|
125
|
-
source_api:
|
|
125
|
+
source_api: Some("datastore".to_string()),
|
|
126
126
|
})
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
use crate::networking::{NetworkClient, NetworkError, RequestArgs, ResponseData};
|
|
2
|
+
use crate::observability::observability_client_adapter::{MetricType, ObservabilityEvent};
|
|
2
3
|
use crate::observability::ops_stats::{OpsStatsForInstance, OPS_STATS};
|
|
3
4
|
use crate::observability::sdk_errors_observer::ErrorBoundaryEvent;
|
|
4
5
|
use crate::sdk_diagnostics::diagnostics::ContextType;
|
|
@@ -26,7 +27,7 @@ use super::SpecsInfo;
|
|
|
26
27
|
|
|
27
28
|
pub struct NetworkResponse {
|
|
28
29
|
pub data: ResponseData,
|
|
29
|
-
pub
|
|
30
|
+
pub loggable_api: String,
|
|
30
31
|
pub requested_deltas: bool,
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -37,6 +38,13 @@ pub const DEFAULT_SYNC_INTERVAL_MS: u32 = 10_000;
|
|
|
37
38
|
pub const INIT_DICT_ID: &str = "null";
|
|
38
39
|
|
|
39
40
|
const TAG: &str = stringify!(StatsigHttpSpecsAdapter);
|
|
41
|
+
const CONFIG_SYNC_OVERALL_LATENCY_METRIC: &str = "config_sync_overall.latency";
|
|
42
|
+
const CONFIG_SYNC_OVERALL_FORMAT_TAG: &str = "format";
|
|
43
|
+
const CONFIG_SYNC_OVERALL_SOURCE_API_TAG: &str = "source_api";
|
|
44
|
+
const CONFIG_SYNC_OVERALL_ERROR_TAG: &str = "error";
|
|
45
|
+
const CONFIG_SYNC_OVERALL_NETWORK_SUCCESS_TAG: &str = "network_success";
|
|
46
|
+
const CONFIG_SYNC_OVERALL_PROCESS_SUCCESS_TAG: &str = "process_success";
|
|
47
|
+
|
|
40
48
|
pub struct StatsigHttpSpecsAdapter {
|
|
41
49
|
listener: RwLock<Option<Arc<dyn SpecsUpdateListener>>>,
|
|
42
50
|
network: NetworkClient,
|
|
@@ -51,6 +59,38 @@ pub struct StatsigHttpSpecsAdapter {
|
|
|
51
59
|
use_deltas_next_request: AtomicBool,
|
|
52
60
|
}
|
|
53
61
|
|
|
62
|
+
// OB client -- START
|
|
63
|
+
// These types are only for the config_sync_overall.latency observability metric added in this change.
|
|
64
|
+
enum ResponseFormat {
|
|
65
|
+
Json,
|
|
66
|
+
PlainText,
|
|
67
|
+
Protobuf,
|
|
68
|
+
Unknown,
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
enum NetworkSyncOutcome {
|
|
72
|
+
Success,
|
|
73
|
+
Failure,
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
impl NetworkSyncOutcome {
|
|
77
|
+
fn as_bool(&self) -> bool {
|
|
78
|
+
matches!(self, Self::Success)
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
impl ResponseFormat {
|
|
83
|
+
fn as_str(&self) -> &str {
|
|
84
|
+
match self {
|
|
85
|
+
ResponseFormat::Json => "json",
|
|
86
|
+
ResponseFormat::PlainText => "plain_text",
|
|
87
|
+
ResponseFormat::Protobuf => "protobuf",
|
|
88
|
+
ResponseFormat::Unknown => "unknown",
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
// OB client -- END
|
|
93
|
+
|
|
54
94
|
impl StatsigHttpSpecsAdapter {
|
|
55
95
|
#[must_use]
|
|
56
96
|
pub fn new(
|
|
@@ -123,7 +163,7 @@ impl StatsigHttpSpecsAdapter {
|
|
|
123
163
|
match self.handle_specs_request(request_args).await {
|
|
124
164
|
Ok(response) => Ok(NetworkResponse {
|
|
125
165
|
data: response,
|
|
126
|
-
|
|
166
|
+
loggable_api: get_api_from_url(&url),
|
|
127
167
|
requested_deltas,
|
|
128
168
|
}),
|
|
129
169
|
Err(e) => Err(e),
|
|
@@ -211,7 +251,7 @@ impl StatsigHttpSpecsAdapter {
|
|
|
211
251
|
let response = self.handle_specs_request(request_args).await?;
|
|
212
252
|
Ok(NetworkResponse {
|
|
213
253
|
data: response,
|
|
214
|
-
|
|
254
|
+
loggable_api: get_api_from_url(&fallback_url),
|
|
215
255
|
requested_deltas,
|
|
216
256
|
})
|
|
217
257
|
}
|
|
@@ -275,22 +315,139 @@ impl StatsigHttpSpecsAdapter {
|
|
|
275
315
|
}
|
|
276
316
|
}
|
|
277
317
|
|
|
318
|
+
let sync_start_ms = Utc::now().timestamp_millis() as u64;
|
|
278
319
|
let response = self
|
|
279
320
|
.fetch_specs_from_network(current_specs_info.clone(), trigger)
|
|
280
321
|
.await;
|
|
281
|
-
let
|
|
322
|
+
let (mut source_api, mut response_format, mut network_success) = match &response {
|
|
323
|
+
Ok(response) => (
|
|
324
|
+
response.loggable_api.clone(),
|
|
325
|
+
Self::get_response_format(&response.data),
|
|
326
|
+
NetworkSyncOutcome::Success,
|
|
327
|
+
),
|
|
328
|
+
Err(_) => (
|
|
329
|
+
get_api_from_url(&construct_specs_url(
|
|
330
|
+
self.specs_url.as_str(),
|
|
331
|
+
self.sdk_key.as_str(),
|
|
332
|
+
)),
|
|
333
|
+
ResponseFormat::Unknown,
|
|
334
|
+
NetworkSyncOutcome::Failure,
|
|
335
|
+
),
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
let mut result = self.process_spec_data(response).await;
|
|
282
339
|
|
|
283
340
|
if result.is_err() && self.fallback_url.is_some() {
|
|
284
341
|
log_d!(TAG, "Falling back to statsig api");
|
|
285
342
|
let response = self
|
|
286
343
|
.handle_fallback_request(self.get_request_args(¤t_specs_info, trigger))
|
|
287
344
|
.await;
|
|
288
|
-
|
|
345
|
+
match &response {
|
|
346
|
+
Ok(response) => {
|
|
347
|
+
source_api = response.loggable_api.clone();
|
|
348
|
+
response_format = Self::get_response_format(&response.data);
|
|
349
|
+
network_success = NetworkSyncOutcome::Success;
|
|
350
|
+
}
|
|
351
|
+
Err(_) => {
|
|
352
|
+
// Backup request failed, so no successful network payload was returned.
|
|
353
|
+
if let Some(fallback_url) = self.fallback_url.as_ref() {
|
|
354
|
+
source_api = get_api_from_url(&construct_specs_url(
|
|
355
|
+
fallback_url.as_str(),
|
|
356
|
+
self.sdk_key.as_str(),
|
|
357
|
+
));
|
|
358
|
+
}
|
|
359
|
+
network_success = NetworkSyncOutcome::Failure;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
result = self.process_spec_data(response).await;
|
|
289
363
|
}
|
|
290
364
|
|
|
365
|
+
let process_success = !matches!(result.as_ref(), Err(StatsigErr::NetworkError(_)));
|
|
366
|
+
self.log_config_sync_overall_latency(
|
|
367
|
+
sync_start_ms,
|
|
368
|
+
&source_api,
|
|
369
|
+
response_format.as_str(),
|
|
370
|
+
network_success.as_bool(),
|
|
371
|
+
process_success,
|
|
372
|
+
result
|
|
373
|
+
.as_ref()
|
|
374
|
+
.err()
|
|
375
|
+
.map_or_else(String::new, |e| e.to_string()),
|
|
376
|
+
);
|
|
377
|
+
|
|
291
378
|
result
|
|
292
379
|
}
|
|
293
380
|
|
|
381
|
+
// --------- START - Observability helpers ---------
|
|
382
|
+
fn get_response_format(response_data: &ResponseData) -> ResponseFormat {
|
|
383
|
+
if Self::is_response_protobuf(response_data) {
|
|
384
|
+
return ResponseFormat::Protobuf;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
let content_type = match response_data.get_header_ref("content-type") {
|
|
388
|
+
Some(content_type) => content_type.to_ascii_lowercase(),
|
|
389
|
+
None => return ResponseFormat::Unknown,
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
if content_type.contains("application/json") || content_type.contains("+json") {
|
|
393
|
+
return ResponseFormat::Json;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
if content_type.contains("text/plain") {
|
|
397
|
+
return ResponseFormat::PlainText;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
ResponseFormat::Unknown
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
fn is_response_protobuf(response_data: &ResponseData) -> bool {
|
|
404
|
+
let content_type = response_data.get_header_ref("content-type");
|
|
405
|
+
if content_type.map(|s| s.as_str().contains("application/octet-stream")) != Some(true) {
|
|
406
|
+
return false;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
let content_encoding = response_data.get_header_ref("content-encoding");
|
|
410
|
+
content_encoding.map(|s| s.as_str().contains("statsig-br")) == Some(true)
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
fn log_config_sync_overall_latency(
|
|
414
|
+
&self,
|
|
415
|
+
sync_start_ms: u64,
|
|
416
|
+
source_api: &str,
|
|
417
|
+
response_format: &str,
|
|
418
|
+
network_success: bool,
|
|
419
|
+
process_success: bool,
|
|
420
|
+
error: String,
|
|
421
|
+
) {
|
|
422
|
+
let latency_ms =
|
|
423
|
+
(Utc::now().timestamp_millis() as u64).saturating_sub(sync_start_ms) as f64;
|
|
424
|
+
self.ops_stats.log(ObservabilityEvent::new_event(
|
|
425
|
+
MetricType::Dist,
|
|
426
|
+
CONFIG_SYNC_OVERALL_LATENCY_METRIC.to_string(),
|
|
427
|
+
latency_ms,
|
|
428
|
+
Some(HashMap::from([
|
|
429
|
+
(
|
|
430
|
+
CONFIG_SYNC_OVERALL_SOURCE_API_TAG.to_string(),
|
|
431
|
+
get_api_from_url(source_api),
|
|
432
|
+
),
|
|
433
|
+
(
|
|
434
|
+
CONFIG_SYNC_OVERALL_FORMAT_TAG.to_string(),
|
|
435
|
+
response_format.to_string(),
|
|
436
|
+
),
|
|
437
|
+
(CONFIG_SYNC_OVERALL_ERROR_TAG.to_string(), error),
|
|
438
|
+
(
|
|
439
|
+
CONFIG_SYNC_OVERALL_NETWORK_SUCCESS_TAG.to_string(),
|
|
440
|
+
network_success.to_string(),
|
|
441
|
+
),
|
|
442
|
+
(
|
|
443
|
+
CONFIG_SYNC_OVERALL_PROCESS_SUCCESS_TAG.to_string(),
|
|
444
|
+
process_success.to_string(),
|
|
445
|
+
),
|
|
446
|
+
])),
|
|
447
|
+
));
|
|
448
|
+
}
|
|
449
|
+
// --------- END - Observability helpers ---------
|
|
450
|
+
|
|
294
451
|
async fn process_spec_data(
|
|
295
452
|
&self,
|
|
296
453
|
response: Result<NetworkResponse, NetworkError>,
|
|
@@ -302,7 +459,7 @@ impl StatsigHttpSpecsAdapter {
|
|
|
302
459
|
data: resp.data,
|
|
303
460
|
source: SpecsSource::Network,
|
|
304
461
|
received_at: Utc::now().timestamp_millis() as u64,
|
|
305
|
-
source_api: Some(resp.
|
|
462
|
+
source_api: Some(resp.loggable_api),
|
|
306
463
|
};
|
|
307
464
|
|
|
308
465
|
self.ops_stats.add_marker(
|
|
@@ -455,6 +612,7 @@ pub enum SpecsSyncTrigger {
|
|
|
455
612
|
mod tests {
|
|
456
613
|
use super::*;
|
|
457
614
|
use crate::{networking::ResponseData, specs_adapter::SpecsUpdate, StatsigOptions};
|
|
615
|
+
use std::collections::HashMap;
|
|
458
616
|
use std::sync::atomic::AtomicUsize;
|
|
459
617
|
|
|
460
618
|
struct ChecksumFailingListener;
|
|
@@ -519,7 +677,7 @@ mod tests {
|
|
|
519
677
|
let result = adapter
|
|
520
678
|
.process_spec_data(Ok(NetworkResponse {
|
|
521
679
|
data: ResponseData::from_bytes(vec![]),
|
|
522
|
-
|
|
680
|
+
loggable_api: "test-api".to_string(),
|
|
523
681
|
requested_deltas: true,
|
|
524
682
|
}))
|
|
525
683
|
.await;
|
|
@@ -553,7 +711,7 @@ mod tests {
|
|
|
553
711
|
let first_result = adapter
|
|
554
712
|
.process_spec_data(Ok(NetworkResponse {
|
|
555
713
|
data: ResponseData::from_bytes(vec![]),
|
|
556
|
-
|
|
714
|
+
loggable_api: "test-api".to_string(),
|
|
557
715
|
requested_deltas: true,
|
|
558
716
|
}))
|
|
559
717
|
.await;
|
|
@@ -569,7 +727,7 @@ mod tests {
|
|
|
569
727
|
let second_result = adapter
|
|
570
728
|
.process_spec_data(Ok(NetworkResponse {
|
|
571
729
|
data: ResponseData::from_bytes(vec![]),
|
|
572
|
-
|
|
730
|
+
loggable_api: "test-api".to_string(),
|
|
573
731
|
requested_deltas: false,
|
|
574
732
|
}))
|
|
575
733
|
.await;
|
|
@@ -586,4 +744,53 @@ mod tests {
|
|
|
586
744
|
Some("true")
|
|
587
745
|
);
|
|
588
746
|
}
|
|
747
|
+
|
|
748
|
+
#[test]
|
|
749
|
+
fn test_get_response_format_json() {
|
|
750
|
+
let mut headers = HashMap::new();
|
|
751
|
+
headers.insert("content-type".to_string(), "application/json".to_string());
|
|
752
|
+
let data = ResponseData::from_bytes_with_headers(vec![], Some(headers));
|
|
753
|
+
assert!(matches!(
|
|
754
|
+
StatsigHttpSpecsAdapter::get_response_format(&data),
|
|
755
|
+
ResponseFormat::Json
|
|
756
|
+
));
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
#[test]
|
|
760
|
+
fn test_get_response_format_plain_text() {
|
|
761
|
+
let mut headers = HashMap::new();
|
|
762
|
+
headers.insert(
|
|
763
|
+
"content-type".to_string(),
|
|
764
|
+
"text/plain; charset=utf-8".to_string(),
|
|
765
|
+
);
|
|
766
|
+
let data = ResponseData::from_bytes_with_headers(vec![], Some(headers));
|
|
767
|
+
assert!(matches!(
|
|
768
|
+
StatsigHttpSpecsAdapter::get_response_format(&data),
|
|
769
|
+
ResponseFormat::PlainText
|
|
770
|
+
));
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
#[test]
|
|
774
|
+
fn test_get_response_format_protobuf() {
|
|
775
|
+
let mut headers = HashMap::new();
|
|
776
|
+
headers.insert(
|
|
777
|
+
"content-type".to_string(),
|
|
778
|
+
"application/octet-stream".to_string(),
|
|
779
|
+
);
|
|
780
|
+
headers.insert("content-encoding".to_string(), "statsig-br".to_string());
|
|
781
|
+
let data = ResponseData::from_bytes_with_headers(vec![], Some(headers));
|
|
782
|
+
assert!(matches!(
|
|
783
|
+
StatsigHttpSpecsAdapter::get_response_format(&data),
|
|
784
|
+
ResponseFormat::Protobuf
|
|
785
|
+
));
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
#[test]
|
|
789
|
+
fn test_get_response_format_unknown_without_content_type() {
|
|
790
|
+
let data = ResponseData::from_bytes(vec![]);
|
|
791
|
+
assert!(matches!(
|
|
792
|
+
StatsigHttpSpecsAdapter::get_response_format(&data),
|
|
793
|
+
ResponseFormat::Unknown
|
|
794
|
+
));
|
|
795
|
+
}
|
|
589
796
|
}
|