statsig-python-core 0.19.4__tar.gz → 0.19.5b2606060303__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.
Files changed (371) hide show
  1. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/Cargo.lock +39 -6
  2. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/Cargo.toml +1 -1
  3. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/PKG-INFO +1 -1
  4. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/statsig_options_py.rs +1 -0
  5. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/Cargo.toml +2 -1
  6. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_logger.rs +4 -1
  7. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/exposure_sampling.rs +103 -14
  8. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/statsig_metadata.rs +1 -1
  9. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/statsig_options.rs +11 -0
  10. statsig_python_core-0.19.5b2606060303/statsig-rust/tests/memory_leak_per_request_users_tests.rs +133 -0
  11. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/py_src/statsig_python_core/__init__.py +0 -0
  12. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/py_src/statsig_python_core/data_store.py +0 -0
  13. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/py_src/statsig_python_core/error_boundary.py +0 -0
  14. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/py_src/statsig_python_core/observability_client.py +0 -0
  15. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/py_src/statsig_python_core/output_logger_provider.py +0 -0
  16. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/py_src/statsig_python_core/persistent_storage.py +0 -0
  17. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/py_src/statsig_python_core/py.typed +0 -0
  18. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/py_src/statsig_python_core/requirements.txt +0 -0
  19. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/py_src/statsig_python_core/statsig.py +0 -0
  20. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/py_src/statsig_python_core/statsig_python_core.pyi +0 -0
  21. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/py_src/statsig_python_core/statsig_types.py +0 -0
  22. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/pyproject.toml +0 -0
  23. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-grpc/Cargo.toml +0 -0
  24. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-grpc/README.md +0 -0
  25. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-grpc/build.rs +0 -0
  26. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-grpc/src/lib.rs +0 -0
  27. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
  28. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-grpc/src/protos/statsig_forward_proxy.proto +0 -0
  29. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
  30. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-grpc/src/statsig_grpc_client.rs +0 -0
  31. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-grpc/src/statsig_grpc_err.rs +0 -0
  32. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/.github/workflows/CI.yml +0 -0
  33. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/.gitignore +0 -0
  34. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/Cargo.toml +0 -0
  35. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/README.md +0 -0
  36. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
  37. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/data_store_base_py.rs +0 -0
  38. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/interned_store_py.rs +0 -0
  39. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/lib.rs +0 -0
  40. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
  41. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
  42. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/pyo_utils.rs +0 -0
  43. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/raw_evaluation_compat_py.rs +0 -0
  44. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/safe_gil.rs +0 -0
  45. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/statsig_base_py.rs +0 -0
  46. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
  47. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
  48. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/statsig_types_py.rs +0 -0
  49. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/statsig_user_py.rs +0 -0
  50. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/unit_id_py.rs +0 -0
  51. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
  52. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/fork_runner.py +0 -0
  53. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/mock_output_logger.py +0 -0
  54. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/mock_scrapi.py +0 -0
  55. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/profile_util.py +0 -0
  56. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
  57. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_data_store.py +0 -0
  58. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_error_boundary.py +0 -0
  59. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_experiment_serialization.py +0 -0
  60. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
  61. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_feature_gate_serialization.py +0 -0
  62. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_forking.py +0 -0
  63. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_get_dynamic_config.py +0 -0
  64. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
  65. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_interned_store_preload.py +0 -0
  66. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_layer_param_exposure_sampling.py +0 -0
  67. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_layer_serialization.py +0 -0
  68. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_observability_client.py +0 -0
  69. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
  70. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_override_adapter.py +0 -0
  71. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_performance.py +0 -0
  72. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_sec_expo_as_primary.py +0 -0
  73. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
  74. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_shutdown.py +0 -0
  75. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_statsig.py +0 -0
  76. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_statsig_options.py +0 -0
  77. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_statsig_user.py +0 -0
  78. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_statsig_user_json_serialization.py +0 -0
  79. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_statsig_user_none_fields.py +0 -0
  80. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
  81. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/test_user_exposure_e2e.py +0 -0
  82. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-pyo3/tests/utils.py +0 -0
  83. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/build.rs +0 -0
  84. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/resources/ip_supalite.table +0 -0
  85. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
  86. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
  87. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
  88. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/__tests__/mod.rs +0 -0
  89. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/__tests__/spec_store_tests.rs +0 -0
  90. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/compression/compression_helper.rs +0 -0
  91. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/compression/mod.rs +0 -0
  92. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/console_capture/console_capture_handler.rs +0 -0
  93. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/console_capture/console_capture_instances.rs +0 -0
  94. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/console_capture/console_capture_options.rs +0 -0
  95. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/console_capture/console_log_line_levels.rs +0 -0
  96. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/console_capture/mod.rs +0 -0
  97. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/data_store_interface.rs +0 -0
  98. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/dcs_str.rs +0 -0
  99. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
  100. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
  101. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/__tests__/rkyv_value_tests.rs +0 -0
  102. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
  103. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
  104. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
  105. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
  106. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
  107. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
  108. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
  109. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
  110. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
  111. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/dynamic_returnable.rs +0 -0
  112. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
  113. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
  114. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
  115. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
  116. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/evaluation_types_initialize_v2.rs +0 -0
  117. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
  118. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/evaluator.rs +0 -0
  119. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/evaluator_context.rs +0 -0
  120. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/evaluator_result.rs +0 -0
  121. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
  122. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
  123. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/mod.rs +0 -0
  124. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/rkyv_value.rs +0 -0
  125. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/secondary_exposure_key.rs +0 -0
  126. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
  127. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
  128. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
  129. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
  130. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
  131. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
  132. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
  133. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
  134. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +0 -0
  135. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
  136. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -0
  137. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
  138. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
  139. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
  140. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
  141. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
  142. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
  143. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_queue/mod.rs +0 -0
  144. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
  145. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +0 -0
  146. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -0
  147. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +0 -0
  148. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_queue/queued_expo.rs +0 -0
  149. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +0 -0
  150. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +0 -0
  151. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
  152. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/event_queue/queued_secondary_expo.rs +0 -0
  153. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
  154. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
  155. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/flush_type.rs +0 -0
  156. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/mod.rs +0 -0
  157. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/sec_expo_as_primary_experiment.rs +0 -0
  158. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
  159. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
  160. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
  161. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
  162. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
  163. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
  164. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +0 -0
  165. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/gcir/dynamic_configs_processor.rs +0 -0
  166. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
  167. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
  168. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/gcir/gcir_options.rs +0 -0
  169. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/gcir/gcir_process_iter.rs +0 -0
  170. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
  171. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/gcir/mod.rs +0 -0
  172. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
  173. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
  174. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
  175. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/global_configs.rs +0 -0
  176. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/hashing/ahash.rs +0 -0
  177. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/hashing/djb2.rs +0 -0
  178. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/hashing/hash_util.rs +0 -0
  179. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
  180. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/hashing/mod.rs +0 -0
  181. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
  182. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
  183. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
  184. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +0 -0
  185. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/init_details.rs +0 -0
  186. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
  187. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/initialize_response.rs +0 -0
  188. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/initialize_v2_response.rs +0 -0
  189. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/instance_registry.rs +0 -0
  190. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/interned_string.rs +0 -0
  191. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/interned_values/__tests__/interned_store_eval_value_tests.rs +0 -0
  192. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/interned_values/__tests__/interned_store_returnable_tests.rs +0 -0
  193. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/interned_values/__tests__/interned_store_string_tests.rs +0 -0
  194. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/interned_values/__tests__/mod.rs +0 -0
  195. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/interned_values/interned_store.rs +0 -0
  196. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/interned_values/mod.rs +0 -0
  197. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/lib.rs +0 -0
  198. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/logging_utils.rs +0 -0
  199. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/macros.rs +0 -0
  200. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
  201. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
  202. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/networking/http_types.rs +0 -0
  203. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/networking/mod.rs +0 -0
  204. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/networking/network_client.rs +0 -0
  205. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/networking/network_error.rs +0 -0
  206. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/networking/providers/mod.rs +0 -0
  207. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
  208. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/networking/providers/net_provider_noop.rs +0 -0
  209. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +0 -0
  210. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/networking/proxy_config.rs +0 -0
  211. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/observability/console_capture_observer.rs +0 -0
  212. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
  213. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/observability/mod.rs +0 -0
  214. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
  215. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/observability/ops_stats.rs +0 -0
  216. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
  217. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/output_logger.rs +0 -0
  218. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/override_adapter/mod.rs +0 -0
  219. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
  220. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
  221. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
  222. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
  223. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/persistent_storage/mod.rs +0 -0
  224. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
  225. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +0 -0
  226. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
  227. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
  228. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/sdk_diagnostics/marker.rs +0 -0
  229. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
  230. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +0 -0
  231. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
  232. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/sdk_event_emitter/event_types.rs +0 -0
  233. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
  234. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/spec_store.rs +0 -0
  235. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_adapter/config_spec_background_sync_metrics.rs +0 -0
  236. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_adapter/mod.rs +0 -0
  237. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_adapter/response_format.rs +0 -0
  238. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
  239. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
  240. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +0 -0
  241. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +0 -0
  242. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
  243. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +0 -0
  244. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
  245. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/__tests__/mod.rs +0 -0
  246. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/__tests__/proto_specs_syncing_tests.rs +0 -0
  247. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/__tests__/proto_specs_unknown_tests.rs +0 -0
  248. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/__tests__/proto_specs_vs_json_tests.rs +0 -0
  249. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/__tests__/proto_stream_reader_tests.rs +0 -0
  250. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
  251. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/explicit_params.rs +0 -0
  252. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/mod.rs +0 -0
  253. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
  254. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/proto_specs.rs +0 -0
  255. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/proto_stream_reader.rs +0 -0
  256. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/spec_types.rs +0 -0
  257. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/specs_hash_map.rs +0 -0
  258. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/specs_response/statsig_config_specs.rs +0 -0
  259. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/statsig.rs +0 -0
  260. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/statsig_core_api_options.rs +0 -0
  261. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/statsig_err.rs +0 -0
  262. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/statsig_global.rs +0 -0
  263. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/statsig_runtime.rs +0 -0
  264. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/statsig_type_factories.rs +0 -0
  265. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/statsig_types.rs +0 -0
  266. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/statsig_types_raw.rs +0 -0
  267. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/user/into_optional.rs +0 -0
  268. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/user/mod.rs +0 -0
  269. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/user/statsig_user.rs +0 -0
  270. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/user/statsig_user_builder.rs +0 -0
  271. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/user/statsig_user_internal.rs +0 -0
  272. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/user/statsig_user_loggable.rs +0 -0
  273. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/user/unit_id.rs +0 -0
  274. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/user/user_data.rs +0 -0
  275. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/src/utils/mod.rs +0 -0
  276. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/check_gate_tests.rs +0 -0
  277. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/customized_specs_adapter_tests.rs +0 -0
  278. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/big_number_dcs.json +0 -0
  279. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
  280. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/company_id_list +0 -0
  281. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/dcs_error.json +0 -0
  282. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
  283. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/dcs_non_case_sensitive.json +0 -0
  284. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/dcs_user_agent_versions.json +0 -0
  285. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/dcs_with_analytical_exposure_sampling.json +0 -0
  286. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
  287. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
  288. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
  289. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/demo_proj_dcs.json +0 -0
  290. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
  291. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/eval_proj_dcs.json +0 -0
  292. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
  293. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/get_id_lists.json +0 -0
  294. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/perf_proj_dcs.json +0 -0
  295. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
  296. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
  297. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
  298. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
  299. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
  300. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
  301. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
  302. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/test_user_agents.txt +0 -0
  303. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/ua_string_cases.json +0 -0
  304. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data/unknown_enum.pb.br +0 -0
  305. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data_store_bytes_adapter_tests.rs +0 -0
  306. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data_store_json_bytes_tests.rs +0 -0
  307. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data_store_json_only_no_bytes_methods_tests.rs +0 -0
  308. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
  309. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/data_store_proto_bytes_tests.rs +0 -0
  310. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/direct_gcir_tests.rs +0 -0
  311. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
  312. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
  313. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
  314. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
  315. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
  316. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
  317. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
  318. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/event_logger_usage_tests.rs +0 -0
  319. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/expected_evaluation_tests.rs +0 -0
  320. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/exposure_sampling_key_tests.rs +0 -0
  321. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/exposure_tests.rs +0 -0
  322. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/flushing_tests.rs +0 -0
  323. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
  324. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/gcir_tests.rs +0 -0
  325. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/global_configs_test.rs +0 -0
  326. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
  327. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
  328. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
  329. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
  330. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/instance_registry_tests.rs +0 -0
  331. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
  332. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/list_methods_tests.rs +0 -0
  333. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
  334. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/network_client_tests.rs +0 -0
  335. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/network_failure_tests.rs +0 -0
  336. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/observability_client_usage_tests.rs +0 -0
  337. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/output_logger_tests.rs +0 -0
  338. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/override_adapter_tests.rs +0 -0
  339. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/perf_tests.rs +0 -0
  340. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/proto_specs_usage_tests.rs +0 -0
  341. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/spec_store_lock_tests.rs +0 -0
  342. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/spec_types_tests.rs +0 -0
  343. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
  344. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_environment_tests.rs +0 -0
  345. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_event_emitter_usage_test.rs +0 -0
  346. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_global_tests.rs +0 -0
  347. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
  348. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +0 -0
  349. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_options_tests.rs +0 -0
  350. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
  351. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_tests.rs +0 -0
  352. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_user_builder_tests.rs +0 -0
  353. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +0 -0
  354. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
  355. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_user_loggable_tests.rs +0 -0
  356. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/statsig_user_tests.rs +0 -0
  357. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
  358. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/typed_getters_tests.rs +0 -0
  359. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
  360. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
  361. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/user_json_tests.rs +0 -0
  362. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/utils/env_var_guard.rs +0 -0
  363. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/utils/helpers.rs +0 -0
  364. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/utils/mock_data_store.rs +0 -0
  365. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
  366. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/utils/mock_log_provider.rs +0 -0
  367. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
  368. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
  369. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/utils/mock_specs_adapter.rs +0 -0
  370. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
  371. {statsig_python_core-0.19.4 → statsig_python_core-0.19.5b2606060303}/statsig-rust/tests/utils/mod.rs +0 -0
@@ -60,6 +60,12 @@ dependencies = [
60
60
  "alloc-no-stdlib",
61
61
  ]
62
62
 
63
+ [[package]]
64
+ name = "allocator-api2"
65
+ version = "0.2.21"
66
+ source = "registry+https://github.com/rust-lang/crates.io-index"
67
+ checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
68
+
63
69
  [[package]]
64
70
  name = "android_system_properties"
65
71
  version = "0.1.5"
@@ -760,6 +766,12 @@ version = "1.0.7"
760
766
  source = "registry+https://github.com/rust-lang/crates.io-index"
761
767
  checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
762
768
 
769
+ [[package]]
770
+ name = "foldhash"
771
+ version = "0.1.5"
772
+ source = "registry+https://github.com/rust-lang/crates.io-index"
773
+ checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
774
+
763
775
  [[package]]
764
776
  name = "form_urlencoded"
765
777
  version = "1.2.1"
@@ -941,6 +953,17 @@ version = "0.14.5"
941
953
  source = "registry+https://github.com/rust-lang/crates.io-index"
942
954
  checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
943
955
 
956
+ [[package]]
957
+ name = "hashbrown"
958
+ version = "0.15.5"
959
+ source = "registry+https://github.com/rust-lang/crates.io-index"
960
+ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
961
+ dependencies = [
962
+ "allocator-api2",
963
+ "equivalent",
964
+ "foldhash",
965
+ ]
966
+
944
967
  [[package]]
945
968
  name = "hashbrown"
946
969
  version = "0.16.1"
@@ -1445,6 +1468,15 @@ version = "0.4.29"
1445
1468
  source = "registry+https://github.com/rust-lang/crates.io-index"
1446
1469
  checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
1447
1470
 
1471
+ [[package]]
1472
+ name = "lru"
1473
+ version = "0.12.5"
1474
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1475
+ checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38"
1476
+ dependencies = [
1477
+ "hashbrown 0.15.5",
1478
+ ]
1479
+
1448
1480
  [[package]]
1449
1481
  name = "maplit"
1450
1482
  version = "1.0.2"
@@ -2870,7 +2902,7 @@ dependencies = [
2870
2902
 
2871
2903
  [[package]]
2872
2904
  name = "sigstat-grpc"
2873
- version = "0.19.4"
2905
+ version = "0.19.5-beta.2606060303"
2874
2906
  dependencies = [
2875
2907
  "async-trait",
2876
2908
  "chrono",
@@ -2962,7 +2994,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
2962
2994
 
2963
2995
  [[package]]
2964
2996
  name = "statsig-node"
2965
- version = "0.19.4"
2997
+ version = "0.19.5-beta.2606060303"
2966
2998
  dependencies = [
2967
2999
  "async-trait",
2968
3000
  "napi",
@@ -2977,7 +3009,7 @@ dependencies = [
2977
3009
 
2978
3010
  [[package]]
2979
3011
  name = "statsig-pyo3"
2980
- version = "0.19.4"
3012
+ version = "0.19.5-beta.2606060303"
2981
3013
  dependencies = [
2982
3014
  "async-trait",
2983
3015
  "lazy_static",
@@ -2992,7 +3024,7 @@ dependencies = [
2992
3024
 
2993
3025
  [[package]]
2994
3026
  name = "statsig-rust"
2995
- version = "0.19.4"
3027
+ version = "0.19.5-beta.2606060303"
2996
3028
  dependencies = [
2997
3029
  "ahash",
2998
3030
  "arc-swap",
@@ -3011,6 +3043,7 @@ dependencies = [
3011
3043
  "lazy_static",
3012
3044
  "libc",
3013
3045
  "log",
3046
+ "lru",
3014
3047
  "memmap2",
3015
3048
  "mockito",
3016
3049
  "more-asserts",
@@ -3042,7 +3075,7 @@ dependencies = [
3042
3075
 
3043
3076
  [[package]]
3044
3077
  name = "statsig_elixir"
3045
- version = "0.19.4"
3078
+ version = "0.19.5-beta.2606060303"
3046
3079
  dependencies = [
3047
3080
  "async-trait",
3048
3081
  "parking_lot",
@@ -3055,7 +3088,7 @@ dependencies = [
3055
3088
 
3056
3089
  [[package]]
3057
3090
  name = "statsig_ffi"
3058
- version = "0.19.4"
3091
+ version = "0.19.5-beta.2606060303"
3059
3092
  dependencies = [
3060
3093
  "async-trait",
3061
3094
  "cbindgen",
@@ -19,7 +19,7 @@ exclude = [
19
19
  [workspace.package]
20
20
  edition = "2021"
21
21
  license = "ISC"
22
- version = "0.19.4"
22
+ version = "0.19.5-beta.2606060303"
23
23
  homepage = "https://statsig.com/"
24
24
  authors = ["Statsig", "Daniel Loomb <daniel@statsig.com>"]
25
25
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: statsig_python_core
3
- Version: 0.19.4
3
+ Version: 0.19.5b2606060303
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -357,6 +357,7 @@ fn create_inner_statsig_options(
357
357
  event_logging_flush_interval_ms: None,
358
358
  event_logging_max_queue_size: opts.event_logging_max_queue_size,
359
359
  event_logging_max_pending_batch_queue_size: opts.event_logging_max_pending_batch_queue_size,
360
+ exposure_dedupe_max_keys: None,
360
361
  enable_id_lists: opts.enable_id_lists,
361
362
  enable_dcs_deltas: opts.enable_dcs_deltas,
362
363
  id_lists_url: opts.id_lists_url.clone(),
@@ -20,6 +20,7 @@ futures = "0.3.30"
20
20
  indexmap = { version = "2.13.0", features = ["serde"], optional = true }
21
21
  lazy_static = "1.5.0"
22
22
  log = "0.4.22"
23
+ lru = "0.12"
23
24
  parking_lot = "0.12.1"
24
25
  percent-encoding = "2.3.1"
25
26
  rand = "0.8.4"
@@ -40,7 +41,7 @@ serde_json = { version = "1.0.143", features = [
40
41
  ] }
41
42
  serde_with = "3.4.0"
42
43
  sha2 = "0.10.8"
43
- sigstat-grpc = { path = "../statsig-grpc", version = "0.19.4", optional = true }
44
+ sigstat-grpc = { path = "../statsig-grpc", version = "0.19.5-beta.2606060303", optional = true }
44
45
  simple_logger = { version = "5.0.0" }
45
46
  tempfile = "3.8.1"
46
47
  tokio = { version = "1.39.1", features = ["full"] }
@@ -79,7 +79,10 @@ impl EventLogger {
79
79
  .event_logging_max_pending_batch_queue_size
80
80
  .unwrap_or(DEFAULT_PENDING_BATCH_COUNT_MAX),
81
81
  ),
82
- event_sampler: ExposureSampling::new(sdk_key),
82
+ event_sampler: ExposureSampling::with_max_keys(
83
+ sdk_key,
84
+ options.exposure_dedupe_max_keys,
85
+ ),
83
86
  flush_interval: FlushInterval::new(),
84
87
  options: options.clone(),
85
88
  logging_adapter: event_logging_adapter.clone(),
@@ -8,7 +8,9 @@ use crate::{
8
8
  };
9
9
  use ahash::AHashSet;
10
10
  use chrono::Utc;
11
+ use lru::LruCache;
11
12
  use parking_lot::RwLock;
13
+ use std::num::NonZeroUsize;
12
14
  use std::sync::{
13
15
  atomic::{AtomicU64, Ordering},
14
16
  Arc,
@@ -16,7 +18,7 @@ use std::sync::{
16
18
 
17
19
  const TAG: &str = "ExposureSampling";
18
20
  const DEFAULT_EXPOSURE_SAMPLING_TTL_MS: u64 = 60_000;
19
- const SAMPLING_MAX_KEYS: usize = 100_000;
21
+ pub const SAMPLING_MAX_KEYS: usize = 100_000;
20
22
 
21
23
  #[derive(Debug)]
22
24
  pub enum EvtSamplingMode {
@@ -46,7 +48,8 @@ pub struct ExposureSampling {
46
48
  spec_sampling_set: RwLock<AHashSet<SpecAndRuleHashTuple>>,
47
49
  last_spec_sampling_reset: AtomicU64,
48
50
 
49
- exposure_dedupe_set: RwLock<AHashSet<ExposureSamplingKey>>,
51
+ exposure_dedupe_set: RwLock<LruCache<ExposureSamplingKey, ()>>,
52
+ exposure_dedupe_max_keys: NonZeroUsize,
50
53
  last_exposure_dedupe_reset: AtomicU64,
51
54
 
52
55
  global_configs: Arc<GlobalConfigs>,
@@ -54,13 +57,25 @@ pub struct ExposureSampling {
54
57
 
55
58
  impl ExposureSampling {
56
59
  pub fn new(sdk_key: &str) -> Self {
60
+ Self::with_max_keys(sdk_key, None)
61
+ }
62
+
63
+ pub fn with_max_keys(sdk_key: &str, max_keys: Option<u32>) -> Self {
57
64
  let now = Utc::now().timestamp_millis() as u64;
58
65
 
66
+ let cap = max_keys
67
+ .map(|v| v as usize)
68
+ .and_then(NonZeroUsize::new)
69
+ .unwrap_or_else(|| {
70
+ NonZeroUsize::new(SAMPLING_MAX_KEYS).expect("SAMPLING_MAX_KEYS must be non-zero")
71
+ });
72
+
59
73
  Self {
60
74
  spec_sampling_set: RwLock::from(AHashSet::default()),
61
75
  last_spec_sampling_reset: AtomicU64::from(now),
62
76
 
63
- exposure_dedupe_set: RwLock::from(AHashSet::default()),
77
+ exposure_dedupe_set: RwLock::from(LruCache::new(cap)),
78
+ exposure_dedupe_max_keys: cap,
64
79
  last_exposure_dedupe_reset: AtomicU64::from(now),
65
80
 
66
81
  global_configs: GlobalConfigs::get_instance(sdk_key),
@@ -121,11 +136,11 @@ impl ExposureSampling {
121
136
 
122
137
  fn should_dedupe_exposure(&self, sampling_key: &ExposureSamplingKey) -> bool {
123
138
  let mut dedupe_set = write_lock_or_return!(TAG, self.exposure_dedupe_set, false);
124
- if dedupe_set.contains(sampling_key) {
139
+ if dedupe_set.get(sampling_key).is_some() {
125
140
  return true;
126
141
  }
127
142
 
128
- dedupe_set.insert(sampling_key.clone());
143
+ dedupe_set.put(sampling_key.clone(), ());
129
144
  false
130
145
  }
131
146
 
@@ -210,16 +225,10 @@ impl ExposureSampling {
210
225
  };
211
226
 
212
227
  let has_expired = now - last_dedupe_reset > ttl_ms;
213
- let is_full = dedupe_map.len() > SAMPLING_MAX_KEYS;
214
228
 
215
- if has_expired || is_full {
216
- log_d!(
217
- TAG,
218
- "Resetting exposure dedupe set. has_expired: {:?}, is_full: {:?}",
219
- has_expired,
220
- is_full
221
- );
222
- dedupe_map.clear();
229
+ if has_expired {
230
+ log_d!(TAG, "Resetting exposure dedupe set (ttl expired)");
231
+ *dedupe_map = LruCache::new(self.exposure_dedupe_max_keys);
223
232
  self.last_exposure_dedupe_reset
224
233
  .store(now, Ordering::Relaxed);
225
234
  }
@@ -347,3 +356,83 @@ impl ExposureSamplingKey {
347
356
  final_hash.is_multiple_of(sampling_rate)
348
357
  }
349
358
  }
359
+
360
+ #[cfg(test)]
361
+ mod tests {
362
+ use super::*;
363
+
364
+ fn make_key(unique: u64) -> ExposureSamplingKey {
365
+ ExposureSamplingKey {
366
+ spec_name_hash: 1,
367
+ rule_id_hash: 2,
368
+ user_values_hash: unique,
369
+ additional_hash: 0,
370
+ }
371
+ }
372
+
373
+ /// Deterministic, cross-platform guard for the bounded dedupe cache.
374
+ ///
375
+ /// Inserting far more unique keys than the configured cap must leave the
376
+ /// cache at exactly the cap. On the pre-fix commit the cache was an
377
+ /// unbounded `HashSet`, so its length would equal the number of unique keys
378
+ /// inserted (10_000) and this assertion would fail.
379
+ #[test]
380
+ fn test_dedupe_set_is_bounded_by_max_keys() {
381
+ let cap: u32 = 1_000;
382
+ let sampling = ExposureSampling::with_max_keys("secret-test-bounded", Some(cap));
383
+
384
+ for i in 0..10_000u64 {
385
+ sampling.should_dedupe_exposure(&make_key(i));
386
+ }
387
+
388
+ let len = sampling.exposure_dedupe_set.read().len();
389
+ assert_eq!(
390
+ len, cap as usize,
391
+ "exposure dedupe cache must be bounded at the configured cap"
392
+ );
393
+ }
394
+
395
+ /// A repeated key is reported as a duplicate on subsequent sightings.
396
+ #[test]
397
+ fn test_dedupe_set_dedupes_repeated_key() {
398
+ let sampling = ExposureSampling::with_max_keys("secret-test-dedupe", Some(10));
399
+ let key = make_key(42);
400
+
401
+ assert!(
402
+ !sampling.should_dedupe_exposure(&key),
403
+ "first sighting should not be a duplicate"
404
+ );
405
+ assert!(
406
+ sampling.should_dedupe_exposure(&key),
407
+ "second sighting should be a duplicate"
408
+ );
409
+ }
410
+
411
+ /// The cache evicts least-recently-used entries, and `get` (a duplicate
412
+ /// hit) refreshes recency so frequently-seen keys survive eviction.
413
+ #[test]
414
+ fn test_dedupe_set_evicts_least_recently_used() {
415
+ let cap: u32 = 3;
416
+ let sampling = ExposureSampling::with_max_keys("secret-test-lru", Some(cap));
417
+
418
+ for i in 0..3u64 {
419
+ assert!(!sampling.should_dedupe_exposure(&make_key(i)));
420
+ }
421
+
422
+ // Refresh key 0 so it becomes most-recently-used; key 1 is now the LRU.
423
+ assert!(sampling.should_dedupe_exposure(&make_key(0)));
424
+
425
+ // Inserting a new key evicts the LRU entry (key 1).
426
+ assert!(!sampling.should_dedupe_exposure(&make_key(3)));
427
+
428
+ assert_eq!(sampling.exposure_dedupe_set.read().len(), cap as usize);
429
+ assert!(
430
+ sampling.should_dedupe_exposure(&make_key(0)),
431
+ "refreshed key should still be present"
432
+ );
433
+ assert!(
434
+ !sampling.should_dedupe_exposure(&make_key(1)),
435
+ "evicted key should be treated as new again"
436
+ );
437
+ }
438
+ }
@@ -10,7 +10,7 @@ lazy_static! {
10
10
  static ref STATSIG_METADATA: RwLock<StatsigMetadata> = RwLock::new(StatsigMetadata::new());
11
11
  }
12
12
 
13
- pub const SDK_VERSION: &str = "0.19.4";
13
+ pub const SDK_VERSION: &str = "0.19.5-beta.2606060303";
14
14
 
15
15
  const TAG: &str = stringify!(StatsigMetadata);
16
16
 
@@ -44,6 +44,11 @@ pub struct StatsigOptions {
44
44
  pub event_logging_max_pending_batch_queue_size: Option<u32>,
45
45
  pub event_logging_max_queue_size: Option<u32>,
46
46
 
47
+ /// Hard upper bound on unique `ExposureSamplingKey`s in the exposure-dedupe LRU
48
+ /// cache. Defaults to [`crate::event_logging::exposure_sampling::SAMPLING_MAX_KEYS`]
49
+ /// (100_000). `Some(0)` is treated as "use the default".
50
+ pub exposure_dedupe_max_keys: Option<u32>,
51
+
47
52
  pub fallback_to_statsig_api: Option<bool>,
48
53
  pub global_custom_fields: Option<HashMap<String, DynamicValue>>,
49
54
 
@@ -187,6 +192,12 @@ impl StatsigOptionsBuilder {
187
192
  self
188
193
  }
189
194
 
195
+ #[must_use]
196
+ pub fn exposure_dedupe_max_keys(mut self, exposure_dedupe_max_keys: Option<u32>) -> Self {
197
+ self.inner.exposure_dedupe_max_keys = exposure_dedupe_max_keys;
198
+ self
199
+ }
200
+
190
201
  // ID Lists
191
202
 
192
203
  #[must_use]
@@ -0,0 +1,133 @@
1
+ //! Regression coverage for unbounded growth in
2
+ //! `ExposureSampling::should_dedupe_exposure`.
3
+ //!
4
+ //! Each iteration uses a distinct `user_id`, which previously inserted into an
5
+ //! unbounded `HashSet` and grew RSS with unique-user cardinality. With the
6
+ //! bounded LRU fix the dedupe cache is capped at `exposure_dedupe_max_keys`.
7
+ //!
8
+ //! The authoritative, deterministic guard for the bound lives in the unit tests
9
+ //! next to the fix in `statsig-rust/src/event_logging/exposure_sampling.rs`
10
+ //! (`tests::test_dedupe_set_is_bounded_by_max_keys`). Those assert directly on
11
+ //! the cache length, run on every platform, and fail on the pre-fix commit.
12
+ //!
13
+ //! This integration test is a Linux-only, real-world RSS smoke check that
14
+ //! exercises the full evaluation path end-to-end. It is `#[ignore]`d by default.
15
+ //!
16
+ //! Run manually on Linux:
17
+ //! `cargo test --release --test memory_leak_per_request_users_tests -- --ignored`
18
+
19
+ mod utils;
20
+
21
+ use crate::utils::mock_event_logging_adapter::MockEventLoggingAdapter;
22
+ use crate::utils::mock_specs_adapter::MockSpecsAdapter;
23
+ use statsig_rust::{ClientInitResponseOptions, Statsig, StatsigOptions, StatsigUser};
24
+ use std::sync::Arc;
25
+
26
+ const WARMUP_ITERATIONS: usize = 1_000;
27
+ const DEDUPE_CAP: u32 = 1_000;
28
+
29
+ #[cfg(target_os = "linux")]
30
+ const ITERATIONS: usize = 10_000;
31
+ #[cfg(target_os = "linux")]
32
+ const MAX_RSS_GROWTH_BYTES: i64 = 50 * 1024 * 1024;
33
+
34
+ const GATE_NAME: &str = "test_public";
35
+ const CONFIG_NAME: &str = "test_empty_array";
36
+ const EXPERIMENT_NAME: &str = "test_experiment_no_targeting";
37
+ const LAYER_NAME: &str = "test_layer";
38
+
39
+ // Reads current RSS in bytes from /proc/self/status (Linux only). Panics on a
40
+ // read/parse failure so a broken measurement surfaces as a test failure rather
41
+ // than being silently skipped, which could otherwise mask a real regression.
42
+ #[cfg(target_os = "linux")]
43
+ fn read_rss_bytes() -> i64 {
44
+ let contents =
45
+ std::fs::read_to_string("/proc/self/status").expect("failed to read /proc/self/status");
46
+ for line in contents.lines() {
47
+ if let Some(rest) = line.strip_prefix("VmRSS:") {
48
+ let kb: i64 = rest
49
+ .split_whitespace()
50
+ .next()
51
+ .and_then(|v| v.parse().ok())
52
+ .expect("failed to parse VmRSS value");
53
+ return kb * 1024;
54
+ }
55
+ }
56
+ panic!("VmRSS field not found in /proc/self/status");
57
+ }
58
+
59
+ #[tokio::test]
60
+ #[ignore]
61
+ async fn test_memory_leak_per_request_users_bounded() {
62
+ let specs_adapter = Arc::new(MockSpecsAdapter::with_data("tests/data/eval_proj_dcs.json"));
63
+ let logging_adapter = Arc::new(MockEventLoggingAdapter::new());
64
+
65
+ let statsig = Statsig::new(
66
+ "secret-shhh",
67
+ Some(Arc::new(StatsigOptions {
68
+ specs_adapter: Some(specs_adapter.clone()),
69
+ event_logging_adapter: Some(logging_adapter.clone()),
70
+ exposure_dedupe_max_keys: Some(DEDUPE_CAP),
71
+ ..StatsigOptions::new()
72
+ })),
73
+ );
74
+ statsig.initialize().await.unwrap();
75
+
76
+ // Warm-up: run the full operation set so lazy initialization, evaluation
77
+ // caches, and allocator bucket growth settle before we capture the baseline.
78
+ // Otherwise first-iteration allocations would be counted as "growth".
79
+ for i in 0..WARMUP_ITERATIONS {
80
+ let user = StatsigUser::with_user_id(format!("warmup-{i}"));
81
+ run_evaluations(&statsig, &user);
82
+ }
83
+
84
+ #[cfg(not(target_os = "linux"))]
85
+ {
86
+ // RSS is only readable via /proc on Linux. The bound itself is verified
87
+ // cross-platform by the deterministic unit tests in `exposure_sampling`,
88
+ // so here we explicitly log that the RSS smoke check is being skipped.
89
+ println!(
90
+ "Skipping RSS smoke check on non-Linux platform ({}). \
91
+ The dedupe-cache bound is covered cross-platform by \
92
+ exposure_sampling::tests::test_dedupe_set_is_bounded_by_max_keys.",
93
+ std::env::consts::OS
94
+ );
95
+ let _ = statsig.shutdown().await;
96
+ }
97
+
98
+ #[cfg(target_os = "linux")]
99
+ {
100
+ let initial_rss = read_rss_bytes();
101
+
102
+ for i in 0..ITERATIONS {
103
+ let user = StatsigUser::with_user_id(format!("user-{i}"));
104
+ run_evaluations(&statsig, &user);
105
+ }
106
+
107
+ let final_rss = read_rss_bytes();
108
+ let delta = final_rss - initial_rss;
109
+
110
+ println!(
111
+ "RSS: initial = {:.2} MB, final = {:.2} MB, delta = {:+.2} MB",
112
+ initial_rss as f64 / 1024.0 / 1024.0,
113
+ final_rss as f64 / 1024.0 / 1024.0,
114
+ delta as f64 / 1024.0 / 1024.0,
115
+ );
116
+
117
+ let _ = statsig.shutdown().await;
118
+
119
+ assert!(
120
+ delta < MAX_RSS_GROWTH_BYTES,
121
+ "RSS grew by {delta} bytes (> {MAX_RSS_GROWTH_BYTES} bytes); exposure dedupe cache exceeded its bound"
122
+ );
123
+ }
124
+ }
125
+
126
+ fn run_evaluations(statsig: &Statsig, user: &StatsigUser) {
127
+ let _ = statsig.check_gate(user, GATE_NAME);
128
+ let _ = statsig.get_dynamic_config(user, CONFIG_NAME);
129
+ let _ = statsig.get_experiment(user, EXPERIMENT_NAME);
130
+ let _ = statsig.get_layer(user, LAYER_NAME);
131
+ let _ =
132
+ statsig.get_client_init_response_with_options(user, &ClientInitResponseOptions::default());
133
+ }