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