statsig-python-core 0.11.0__tar.gz → 0.11.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/Cargo.lock +6 -6
  2. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/Cargo.toml +1 -1
  3. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/PKG-INFO +1 -1
  4. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/Cargo.toml +1 -1
  5. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/__tests__/spec_store_tests.rs +4 -0
  6. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/sdk_event_emitter/event_types.rs +24 -1
  7. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/spec_store.rs +20 -0
  8. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/statsig.rs +5 -2
  9. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/statsig_metadata.rs +1 -1
  10. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/user/statsig_user_builder.rs +14 -0
  11. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/user/statsig_user_internal.rs +17 -7
  12. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/user/user_data.rs +1 -0
  13. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/global_configs_test.rs +3 -2
  14. statsig_python_core-0.11.1/statsig-rust/tests/statsig_environment_tests.rs +203 -0
  15. statsig_python_core-0.11.1/statsig-rust/tests/statsig_event_emitter_usage_test.rs +156 -0
  16. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_user_loggable_tests.rs +4 -0
  17. statsig_python_core-0.11.0/statsig-rust/tests/statsig_event_emitter_usage_test.rs +0 -107
  18. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/py_src/statsig_python_core/__init__.py +0 -0
  19. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/py_src/statsig_python_core/data_store.py +0 -0
  20. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/py_src/statsig_python_core/error_boundary.py +0 -0
  21. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/py_src/statsig_python_core/observability_client.py +0 -0
  22. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/py_src/statsig_python_core/output_logger_provider.py +0 -0
  23. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/py_src/statsig_python_core/persistent_storage.py +0 -0
  24. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/py_src/statsig_python_core/py.typed +0 -0
  25. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/py_src/statsig_python_core/requirements.txt +0 -0
  26. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/py_src/statsig_python_core/statsig.py +0 -0
  27. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/py_src/statsig_python_core/statsig_python_core.pyi +0 -0
  28. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/pyproject.toml +0 -0
  29. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/Cargo.toml +0 -0
  30. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/README.md +0 -0
  31. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/api-interface-definitions/README.md +0 -0
  32. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/api-interface-definitions/protos/data_adapter.proto +0 -0
  33. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/api-interface-definitions/protos/grpc_health.proto +0 -0
  34. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/api-interface-definitions/protos/statsig_forward_proxy.proto +0 -0
  35. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/build.rs +0 -0
  36. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/src/lib.rs +0 -0
  37. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
  38. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
  39. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/src/statsig_grpc_client.rs +0 -0
  40. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-grpc/src/statsig_grpc_err.rs +0 -0
  41. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/.github/workflows/CI.yml +0 -0
  42. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/.gitignore +0 -0
  43. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/Cargo.toml +0 -0
  44. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/README.md +0 -0
  45. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/py_src/statsig_python_core/__init__.py +0 -0
  46. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/py_src/statsig_python_core/data_store.py +0 -0
  47. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/py_src/statsig_python_core/error_boundary.py +0 -0
  48. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/py_src/statsig_python_core/observability_client.py +0 -0
  49. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/py_src/statsig_python_core/output_logger_provider.py +0 -0
  50. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/py_src/statsig_python_core/persistent_storage.py +0 -0
  51. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/py_src/statsig_python_core/py.typed +0 -0
  52. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/py_src/statsig_python_core/requirements.txt +0 -0
  53. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/py_src/statsig_python_core/statsig.py +0 -0
  54. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/py_src/statsig_python_core/statsig_python_core.pyi +0 -0
  55. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
  56. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/data_store_base_py.rs +0 -0
  57. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/lib.rs +0 -0
  58. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
  59. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
  60. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/pyo_utils.rs +0 -0
  61. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/safe_gil.rs +0 -0
  62. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/statsig_base_py.rs +0 -0
  63. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
  64. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/statsig_options_py.rs +0 -0
  65. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
  66. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/statsig_types_py.rs +0 -0
  67. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/statsig_user_py.rs +0 -0
  68. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/unit_id_py.rs +0 -0
  69. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
  70. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/fork_runner.py +0 -0
  71. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/mock_scrapi.py +0 -0
  72. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
  73. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_data_store.py +0 -0
  74. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_error_boundary.py +0 -0
  75. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
  76. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_forking.py +0 -0
  77. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
  78. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_observability_client.py +0 -0
  79. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
  80. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_override_adapter.py +0 -0
  81. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
  82. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_shutdown.py +0 -0
  83. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_statsig.py +0 -0
  84. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_statsig_options.py +0 -0
  85. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_statsig_user.py +0 -0
  86. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
  87. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-pyo3/tests/utils.py +0 -0
  88. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/resources/ip_supalite.table +0 -0
  89. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
  90. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
  91. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
  92. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/__tests__/mod.rs +0 -0
  93. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/compression/compression_helper.rs +0 -0
  94. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/compression/mod.rs +0 -0
  95. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/data_store_interface.rs +0 -0
  96. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/dcs_str.rs +0 -0
  97. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
  98. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
  99. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
  100. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
  101. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
  102. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
  103. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
  104. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
  105. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
  106. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
  107. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
  108. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/dynamic_returnable.rs +0 -0
  109. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
  110. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
  111. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
  112. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
  113. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
  114. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/evaluator.rs +0 -0
  115. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/evaluator_context.rs +0 -0
  116. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/evaluator_result.rs +0 -0
  117. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
  118. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
  119. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/mod.rs +0 -0
  120. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
  121. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
  122. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
  123. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
  124. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
  125. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
  126. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
  127. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
  128. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +0 -0
  129. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
  130. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -0
  131. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
  132. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
  133. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
  134. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_logger.rs +0 -0
  135. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
  136. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
  137. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
  138. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_queue/mod.rs +0 -0
  139. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
  140. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +0 -0
  141. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -0
  142. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +0 -0
  143. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +0 -0
  144. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +0 -0
  145. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
  146. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/exposure_sampling.rs +0 -0
  147. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
  148. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
  149. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/flush_type.rs +0 -0
  150. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/mod.rs +0 -0
  151. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
  152. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
  153. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
  154. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
  155. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
  156. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
  157. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +0 -0
  158. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/gcir/dynamic_configs_processor.rs +0 -0
  159. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
  160. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
  161. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/gcir/gcir_options.rs +0 -0
  162. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/gcir/gcir_process_iter.rs +0 -0
  163. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
  164. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/gcir/mod.rs +0 -0
  165. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
  166. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
  167. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
  168. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/global_configs.rs +0 -0
  169. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/hashing/ahash.rs +0 -0
  170. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/hashing/djb2.rs +0 -0
  171. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/hashing/hash_util.rs +0 -0
  172. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
  173. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/hashing/mod.rs +0 -0
  174. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
  175. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
  176. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
  177. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +0 -0
  178. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/init_details.rs +0 -0
  179. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
  180. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/initialize_response.rs +0 -0
  181. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/instance_registry.rs +0 -0
  182. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/interned_string.rs +0 -0
  183. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/interned_value_store.rs +0 -0
  184. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/lib.rs +0 -0
  185. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/macros.rs +0 -0
  186. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
  187. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
  188. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/networking/http_types.rs +0 -0
  189. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/networking/mod.rs +0 -0
  190. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/networking/network_client.rs +0 -0
  191. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/networking/network_error.rs +0 -0
  192. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/networking/providers/mod.rs +0 -0
  193. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
  194. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/networking/providers/net_provider_noop.rs +0 -0
  195. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +0 -0
  196. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/networking/proxy_config.rs +0 -0
  197. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
  198. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/observability/mod.rs +0 -0
  199. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
  200. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/observability/ops_stats.rs +0 -0
  201. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
  202. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/output_logger.rs +0 -0
  203. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/override_adapter/mod.rs +0 -0
  204. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
  205. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
  206. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
  207. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
  208. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/persistent_storage/mod.rs +0 -0
  209. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
  210. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +0 -0
  211. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
  212. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
  213. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/sdk_diagnostics/marker.rs +0 -0
  214. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
  215. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +0 -0
  216. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
  217. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
  218. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_adapter/mod.rs +0 -0
  219. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
  220. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
  221. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +0 -0
  222. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +0 -0
  223. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
  224. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +0 -0
  225. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
  226. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
  227. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_response/mod.rs +0 -0
  228. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
  229. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_response/spec_directory.rs +0 -0
  230. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/specs_response/spec_types.rs +0 -0
  231. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/statsig_core_api_options.rs +0 -0
  232. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/statsig_err.rs +0 -0
  233. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/statsig_global.rs +0 -0
  234. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/statsig_options.rs +0 -0
  235. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/statsig_runtime.rs +0 -0
  236. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/statsig_type_factories.rs +0 -0
  237. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/statsig_types.rs +0 -0
  238. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/user/into_optional.rs +0 -0
  239. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/user/mod.rs +0 -0
  240. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/user/statsig_user.rs +0 -0
  241. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/user/statsig_user_loggable.rs +0 -0
  242. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/user/unit_id.rs +0 -0
  243. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/src/utils/mod.rs +0 -0
  244. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/check_gate_tests.rs +0 -0
  245. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/customized_specs_adapter_tests.rs +0 -0
  246. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/big_number_dcs.json +0 -0
  247. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
  248. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/company_id_list +0 -0
  249. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
  250. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
  251. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
  252. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
  253. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/eval_proj_dcs.json +0 -0
  254. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/get_id_lists.json +0 -0
  255. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
  256. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
  257. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
  258. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
  259. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
  260. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
  261. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/test_user_agents.txt +0 -0
  262. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data/ua_string_cases.json +0 -0
  263. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
  264. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/direct_gcir_tests.rs +0 -0
  265. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
  266. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
  267. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
  268. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
  269. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
  270. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
  271. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
  272. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/event_logger_usage_tests.rs +0 -0
  273. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/expected_evaluation_tests.rs +0 -0
  274. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/exposure_sampling_key_tests.rs +0 -0
  275. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/exposure_tests.rs +0 -0
  276. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/flushing_tests.rs +0 -0
  277. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
  278. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/gcir_tests.rs +0 -0
  279. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
  280. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
  281. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
  282. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
  283. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/instance_registry_tests.rs +0 -0
  284. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
  285. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/list_methods_tests.rs +0 -0
  286. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
  287. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/network_client_tests.rs +0 -0
  288. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/network_failure_tests.rs +0 -0
  289. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/observability_client_usage_tests.rs +0 -0
  290. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/output_logger_tests.rs +0 -0
  291. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/override_adapter_tests.rs +0 -0
  292. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/perf_tests.rs +0 -0
  293. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/spec_types_tests.rs +0 -0
  294. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
  295. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_global_tests.rs +0 -0
  296. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
  297. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +0 -0
  298. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_options_tests.rs +0 -0
  299. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
  300. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_tests.rs +0 -0
  301. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_user_builder_tests.rs +0 -0
  302. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +0 -0
  303. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
  304. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/statsig_user_tests.rs +0 -0
  305. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
  306. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/typed_getters_tests.rs +0 -0
  307. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
  308. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
  309. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/user_agent_tests_third_party.rs +0 -0
  310. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/user_json_tests.rs +0 -0
  311. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/utils/helpers.rs +0 -0
  312. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/utils/mock_data_store.rs +0 -0
  313. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
  314. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/utils/mock_log_provider.rs +0 -0
  315. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
  316. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
  317. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/utils/mock_specs_adapter.rs +0 -0
  318. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
  319. {statsig_python_core-0.11.0 → statsig_python_core-0.11.1}/statsig-rust/tests/utils/mod.rs +0 -0
@@ -2374,7 +2374,7 @@ dependencies = [
2374
2374
 
2375
2375
  [[package]]
2376
2376
  name = "sigstat-grpc"
2377
- version = "0.11.0"
2377
+ version = "0.11.1"
2378
2378
  dependencies = [
2379
2379
  "async-trait",
2380
2380
  "chrono",
@@ -2438,7 +2438,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
2438
2438
 
2439
2439
  [[package]]
2440
2440
  name = "statsig-node"
2441
- version = "0.11.0"
2441
+ version = "0.11.1"
2442
2442
  dependencies = [
2443
2443
  "async-trait",
2444
2444
  "napi",
@@ -2452,7 +2452,7 @@ dependencies = [
2452
2452
 
2453
2453
  [[package]]
2454
2454
  name = "statsig-pyo3"
2455
- version = "0.11.0"
2455
+ version = "0.11.1"
2456
2456
  dependencies = [
2457
2457
  "async-trait",
2458
2458
  "lazy_static",
@@ -2466,7 +2466,7 @@ dependencies = [
2466
2466
 
2467
2467
  [[package]]
2468
2468
  name = "statsig-rust"
2469
- version = "0.11.0"
2469
+ version = "0.11.1"
2470
2470
  dependencies = [
2471
2471
  "ahash",
2472
2472
  "arc-swap",
@@ -2507,7 +2507,7 @@ dependencies = [
2507
2507
 
2508
2508
  [[package]]
2509
2509
  name = "statsig_elixir"
2510
- version = "0.11.0"
2510
+ version = "0.11.1"
2511
2511
  dependencies = [
2512
2512
  "parking_lot",
2513
2513
  "rustler",
@@ -2519,7 +2519,7 @@ dependencies = [
2519
2519
 
2520
2520
  [[package]]
2521
2521
  name = "statsig_ffi"
2522
- version = "0.11.0"
2522
+ version = "0.11.1"
2523
2523
  dependencies = [
2524
2524
  "async-trait",
2525
2525
  "cbindgen",
@@ -18,7 +18,7 @@ exclude = [
18
18
  [workspace.package]
19
19
  edition = "2021"
20
20
  license = "ISC"
21
- version = "0.11.0"
21
+ version = "0.11.1"
22
22
  homepage = "https://statsig.com/"
23
23
  authors = ["Statsig", "Daniel Loomb <daniel@statsig.com>"]
24
24
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: statsig_python_core
3
- Version: 0.11.0
3
+ Version: 0.11.1
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -38,7 +38,7 @@ serde_json = { version = "1.0.143", features = [
38
38
  ] }
39
39
  serde_with = "3.4.0"
40
40
  sha2 = "0.10.8"
41
- sigstat-grpc = { path = "../statsig-grpc", version = "0.11.0", optional = true }
41
+ sigstat-grpc = { path = "../statsig-grpc", version = "0.11.1", optional = true }
42
42
  simple_logger = { version = "5.0.0" }
43
43
  tempfile = "3.8.1"
44
44
  tokio = { version = "1.39.1", features = ["full"] }
@@ -6,6 +6,7 @@ use parking_lot::Mutex;
6
6
  use crate::{
7
7
  data_store_interface::{DataStoreResponse, DataStoreTrait, RequestPath},
8
8
  networking::ResponseData,
9
+ sdk_event_emitter::SdkEventEmitter,
9
10
  SpecStore, SpecsSource, SpecsUpdate, StatsigErr, StatsigRuntime,
10
11
  };
11
12
 
@@ -65,6 +66,7 @@ async fn test_spec_store_data_store_updates_forwarded_to_data_store() {
65
66
  "test",
66
67
  "test".to_string(),
67
68
  StatsigRuntime::get_runtime(),
69
+ Arc::new(SdkEventEmitter::default()),
68
70
  Some(data_store.clone()),
69
71
  );
70
72
 
@@ -97,6 +99,7 @@ fn test_failure_to_update() {
97
99
  "test",
98
100
  "test".to_string(),
99
101
  StatsigRuntime::get_runtime(),
102
+ Arc::new(SdkEventEmitter::default()),
100
103
  None,
101
104
  );
102
105
 
@@ -116,6 +119,7 @@ fn test_no_updates() {
116
119
  "test",
117
120
  "test".to_string(),
118
121
  StatsigRuntime::get_runtime(),
122
+ Arc::new(SdkEventEmitter::default()),
119
123
  None,
120
124
  );
121
125
 
@@ -1,4 +1,8 @@
1
- use crate::statsig_types::{DynamicConfig, Experiment, Layer};
1
+ use crate::{
2
+ specs_response::spec_types::SpecsResponseFull,
3
+ statsig_types::{DynamicConfig, Experiment, Layer},
4
+ SpecsSource,
5
+ };
2
6
  use serde::Serialize;
3
7
  use serde_json::json;
4
8
  use std::borrow::Cow;
@@ -12,6 +16,7 @@ pub enum SdkEventCode {
12
16
  DynamicConfigEvaluated = 3,
13
17
  ExperimentEvaluated = 4,
14
18
  LayerEvaluated = 5,
19
+ SpecsUpdated = 6,
15
20
  }
16
21
 
17
22
  impl SdkEventCode {
@@ -22,6 +27,7 @@ impl SdkEventCode {
22
27
  SdkEvent::DYNAMIC_CONFIG_EVALUATED => SdkEventCode::DynamicConfigEvaluated,
23
28
  SdkEvent::EXPERIMENT_EVALUATED => SdkEventCode::ExperimentEvaluated,
24
29
  SdkEvent::LAYER_EVALUATED => SdkEventCode::LayerEvaluated,
30
+ SdkEvent::SPECS_UPDATED => SdkEventCode::SpecsUpdated,
25
31
  _ => SdkEventCode::Unknown,
26
32
  }
27
33
  }
@@ -33,6 +39,11 @@ impl SdkEventCode {
33
39
 
34
40
  #[derive(Serialize, Clone)]
35
41
  pub enum SdkEvent<'a> {
42
+ SpecsUpdated {
43
+ source: &'a SpecsSource,
44
+ source_api: &'a Option<String>,
45
+ values: &'a SpecsResponseFull,
46
+ },
36
47
  GateEvaluated {
37
48
  gate_name: Cow<'a, str>,
38
49
  rule_id: Cow<'a, str>,
@@ -56,6 +67,7 @@ impl SdkEvent<'_> {
56
67
  pub const DYNAMIC_CONFIG_EVALUATED: &'static str = "dynamic_config_evaluated";
57
68
  pub const EXPERIMENT_EVALUATED: &'static str = "experiment_evaluated";
58
69
  pub const LAYER_EVALUATED: &'static str = "layer_evaluated";
70
+ pub const SPECS_UPDATED: &'static str = "specs_updated";
59
71
 
60
72
  pub fn get_code(&self) -> SdkEventCode {
61
73
  match self {
@@ -63,6 +75,7 @@ impl SdkEvent<'_> {
63
75
  SdkEvent::DynamicConfigEvaluated { .. } => SdkEventCode::DynamicConfigEvaluated,
64
76
  SdkEvent::ExperimentEvaluated { .. } => SdkEventCode::ExperimentEvaluated,
65
77
  SdkEvent::LayerEvaluated { .. } => SdkEventCode::LayerEvaluated,
78
+ SdkEvent::SpecsUpdated { .. } => SdkEventCode::SpecsUpdated,
66
79
  }
67
80
  }
68
81
 
@@ -73,6 +86,7 @@ impl SdkEvent<'_> {
73
86
  SdkEventCode::DynamicConfigEvaluated => SdkEvent::DYNAMIC_CONFIG_EVALUATED,
74
87
  SdkEventCode::ExperimentEvaluated => SdkEvent::EXPERIMENT_EVALUATED,
75
88
  SdkEventCode::LayerEvaluated => SdkEvent::LAYER_EVALUATED,
89
+ SdkEventCode::SpecsUpdated => SdkEvent::SPECS_UPDATED,
76
90
  SdkEventCode::Unknown => "unknown",
77
91
  }
78
92
  }
@@ -103,6 +117,15 @@ impl SdkEvent<'_> {
103
117
  SdkEvent::LayerEvaluated { layer } => {
104
118
  map.insert("layer".to_string(), json!(layer));
105
119
  }
120
+ SdkEvent::SpecsUpdated {
121
+ source,
122
+ source_api,
123
+ values,
124
+ } => {
125
+ map.insert("source".to_string(), json!(source));
126
+ map.insert("source_api".to_string(), json!(source_api));
127
+ map.insert("values".to_string(), json!(values));
128
+ }
106
129
  }
107
130
 
108
131
  map
@@ -5,6 +5,7 @@ use crate::networking::ResponseData;
5
5
  use crate::observability::observability_client_adapter::{MetricType, ObservabilityEvent};
6
6
  use crate::observability::ops_stats::{OpsStatsForInstance, OPS_STATS};
7
7
  use crate::observability::sdk_errors_observer::ErrorBoundaryEvent;
8
+ use crate::sdk_event_emitter::{SdkEvent, SdkEventEmitter};
8
9
  use crate::specs_response::spec_types::{SpecsResponseFull, SpecsResponseNoUpdates};
9
10
  use crate::utils::maybe_trim_malloc;
10
11
  use crate::{
@@ -36,6 +37,7 @@ pub struct SpecStore {
36
37
  statsig_runtime: Arc<StatsigRuntime>,
37
38
  ops_stats: Arc<OpsStatsForInstance>,
38
39
  global_configs: Arc<GlobalConfigs>,
40
+ event_emitter: Arc<SdkEventEmitter>,
39
41
  }
40
42
 
41
43
  impl SpecStore {
@@ -44,6 +46,7 @@ impl SpecStore {
44
46
  sdk_key: &str,
45
47
  hashed_sdk_key: String,
46
48
  statsig_runtime: Arc<StatsigRuntime>,
49
+ event_emitter: Arc<SdkEventEmitter>,
47
50
  data_store: Option<Arc<dyn DataStoreTrait>>,
48
51
  ) -> SpecStore {
49
52
  SpecStore {
@@ -56,6 +59,7 @@ impl SpecStore {
56
59
  source_api: None,
57
60
  id_lists: HashMap::new(),
58
61
  })),
62
+ event_emitter,
59
63
  data_store,
60
64
  statsig_runtime,
61
65
  ops_stats: OPS_STATS.get_for_instance(sdk_key),
@@ -189,6 +193,9 @@ impl SpecStore {
189
193
 
190
194
  data.time_received_at = Some(now);
191
195
  data.source_api = source_api;
196
+
197
+ self.emit_specs_updated_sdk_event(&data.source, &data.source_api, &data.values);
198
+
192
199
  Ok((prev_source, prev_lcut, data.values.time))
193
200
  }
194
201
  None => {
@@ -200,6 +207,19 @@ impl SpecStore {
200
207
  }
201
208
  }
202
209
 
210
+ fn emit_specs_updated_sdk_event(
211
+ &self,
212
+ source: &SpecsSource,
213
+ source_api: &Option<String>,
214
+ values: &SpecsResponseFull,
215
+ ) {
216
+ self.event_emitter.emit(SdkEvent::SpecsUpdated {
217
+ source,
218
+ source_api,
219
+ values,
220
+ });
221
+ }
222
+
203
223
  fn ops_stats_log_no_update(&self, source: SpecsSource, source_api: Option<String>) {
204
224
  log_d!(TAG, "No Updates");
205
225
  self.ops_stats.log(ObservabilityEvent::new_event(
@@ -83,7 +83,7 @@ lazy_static::lazy_static! {
83
83
  pub struct Statsig {
84
84
  pub statsig_runtime: Arc<StatsigRuntime>,
85
85
  pub options: Arc<StatsigOptions>,
86
- pub event_emitter: SdkEventEmitter,
86
+ pub event_emitter: Arc<SdkEventEmitter>,
87
87
 
88
88
  sdk_key: String,
89
89
  event_logger: Arc<EventLogger>,
@@ -167,10 +167,13 @@ impl Statsig {
167
167
  &options.observability_client,
168
168
  );
169
169
 
170
+ let event_emitter = Arc::new(SdkEventEmitter::default());
171
+
170
172
  let spec_store = Arc::new(SpecStore::new(
171
173
  sdk_key,
172
174
  hashing.sha256(sdk_key),
173
175
  statsig_runtime.clone(),
176
+ event_emitter.clone(),
174
177
  options.data_store.clone(),
175
178
  ));
176
179
 
@@ -206,7 +209,7 @@ impl Statsig {
206
209
  background_tasks_started: Arc::new(AtomicBool::new(false)),
207
210
  persistent_values_manager,
208
211
  initialize_details: Mutex::new(InitializeDetails::default()),
209
- event_emitter: SdkEventEmitter::default(),
212
+ event_emitter,
210
213
  }
211
214
  }
212
215
 
@@ -49,7 +49,7 @@ pub struct StatsigMetadataWithLogEventExtras {
49
49
  impl StatsigMetadata {
50
50
  fn new() -> Self {
51
51
  Self {
52
- sdk_version: "0.11.0".to_string(),
52
+ sdk_version: "0.11.1".to_string(),
53
53
  sdk_type: "statsig-server-core".to_string(),
54
54
  session_id: Uuid::new_v4().to_string(),
55
55
  os: None,
@@ -18,6 +18,8 @@ pub struct StatsigUserBuilder {
18
18
 
19
19
  pub custom: Option<HashMap<String, DynamicValue>>,
20
20
  pub private_attributes: Option<HashMap<String, DynamicValue>>,
21
+
22
+ pub statsig_environment: Option<HashMap<String, DynamicValue>>,
21
23
  }
22
24
 
23
25
  impl StatsigUserBuilder {
@@ -50,6 +52,7 @@ impl StatsigUserBuilder {
50
52
  custom: None,
51
53
  private_attributes: None,
52
54
  custom_ids: None,
55
+ statsig_environment: None,
53
56
  }
54
57
  }
55
58
 
@@ -117,6 +120,16 @@ impl StatsigUserBuilder {
117
120
  self
118
121
  }
119
122
 
123
+ pub fn statsig_environment(
124
+ mut self,
125
+ statsig_environment: Option<HashMap<String, String>>,
126
+ ) -> Self {
127
+ if let Some(statsig_environment) = statsig_environment {
128
+ self.statsig_environment = Some(convert_str_map_to_dyn_values(statsig_environment));
129
+ }
130
+ self
131
+ }
132
+
120
133
  // todo: support HashMap<String, String | Number | Boolean | Array<String>>
121
134
  pub fn custom_from_str_map(mut self, custom: Option<HashMap<String, String>>) -> Self {
122
135
  if let Some(custom) = custom {
@@ -164,6 +177,7 @@ impl StatsigUserBuilder {
164
177
  app_version: self.app_version,
165
178
  custom: self.custom,
166
179
  private_attributes: self.private_attributes,
180
+ statsig_environment: self.statsig_environment,
167
181
  custom_ids: self
168
182
  .custom_ids
169
183
  .map(|m| m.into_iter().map(|(k, v)| (k, v.into())).collect()),
@@ -1,3 +1,5 @@
1
+ use std::collections::HashMap;
2
+
1
3
  use super::StatsigUserLoggable;
2
4
  use crate::evaluation::dynamic_value::DynamicValue;
3
5
  use crate::hashing::djb2_number;
@@ -109,6 +111,12 @@ impl<'statsig, 'user> StatsigUserInternal<'statsig, 'user> {
109
111
  ) -> Option<DynamicValue> {
110
112
  let field = field.as_ref()?;
111
113
 
114
+ if let Some(statsig_environment) = &self.user_ref.data.statsig_environment {
115
+ if let Some(result) = statsig_environment.get(field.value.as_str()) {
116
+ return Some(result.clone());
117
+ }
118
+ }
119
+
112
120
  if let Some(result) = self.statsig_instance?.get_from_statsig_env(&field.value) {
113
121
  return Some(result);
114
122
  }
@@ -118,13 +126,15 @@ impl<'statsig, 'user> StatsigUserInternal<'statsig, 'user> {
118
126
  }
119
127
 
120
128
  pub fn to_loggable(&self) -> StatsigUserLoggable {
121
- let (environment, global_custom) = match self.statsig_instance {
122
- Some(statsig) => (
123
- statsig.use_statsig_env(|e| e.cloned()),
124
- statsig.use_global_custom_fields(|gc| gc.cloned()),
125
- ),
126
- None => (None, None),
127
- };
129
+ let mut environment = self.user_ref.data.statsig_environment.clone();
130
+ let mut global_custom: Option<HashMap<String, DynamicValue>> = None;
131
+
132
+ if let Some(statsig_instance) = &self.statsig_instance {
133
+ if environment.is_none() {
134
+ environment = statsig_instance.use_statsig_env(|e| e.cloned());
135
+ }
136
+ global_custom = statsig_instance.use_global_custom_fields(|gc| gc.cloned());
137
+ }
128
138
 
129
139
  StatsigUserLoggable::new(&self.user_ref.data, environment, global_custom)
130
140
  }
@@ -20,6 +20,7 @@ pub struct UserData {
20
20
  pub country: Option<DynamicValue>,
21
21
  pub locale: Option<DynamicValue>,
22
22
  pub app_version: Option<DynamicValue>,
23
+ pub statsig_environment: Option<HashMap<String, DynamicValue>>,
23
24
 
24
25
  #[serde(skip_serializing)]
25
26
  pub private_attributes: Option<HashMap<String, DynamicValue>>,
@@ -1,6 +1,6 @@
1
1
  use statsig_rust::{
2
- global_configs::GlobalConfigs, networking::ResponseData, SpecStore, SpecsSource, SpecsUpdate,
3
- StatsigRuntime,
2
+ global_configs::GlobalConfigs, networking::ResponseData, sdk_event_emitter::SdkEventEmitter,
3
+ SpecStore, SpecsSource, SpecsUpdate, StatsigRuntime,
4
4
  };
5
5
  use std::fs;
6
6
 
@@ -9,6 +9,7 @@ fn create_test_spec_store(sdk_key: &str) -> SpecStore {
9
9
  sdk_key,
10
10
  sdk_key.to_string(),
11
11
  StatsigRuntime::get_runtime(),
12
+ std::sync::Arc::new(SdkEventEmitter::default()),
12
13
  None,
13
14
  )
14
15
  }
@@ -0,0 +1,203 @@
1
+ mod utils;
2
+
3
+ use crate::utils::mock_specs_adapter::MockSpecsAdapter;
4
+ use serde_json::json;
5
+ use statsig_rust::{Statsig, StatsigOptions, StatsigUser, StatsigUserBuilder};
6
+ use std::collections::HashMap;
7
+ use std::sync::atomic::Ordering;
8
+ use std::sync::Arc;
9
+ use utils::mock_event_logging_adapter::MockEventLoggingAdapter;
10
+
11
+ const DCS_EVAL_PROJ: &str = "eval_proj_dcs";
12
+
13
+ async fn setup_with_environment(
14
+ environment: Option<String>,
15
+ ) -> (Statsig, Arc<MockEventLoggingAdapter>) {
16
+ let logging_adapter = Arc::new(MockEventLoggingAdapter::new());
17
+ let dcs_path = format!("tests/data/{DCS_EVAL_PROJ}.json");
18
+ let specs_adapter = Arc::new(MockSpecsAdapter::with_data(&dcs_path));
19
+
20
+ let mut options = StatsigOptions::new();
21
+ options.specs_adapter = Some(specs_adapter);
22
+ options.event_logging_adapter = Some(logging_adapter.clone());
23
+ options.environment = environment;
24
+
25
+ let uuid = uuid::Uuid::new_v4();
26
+ let statsig = Statsig::new(&format!("secret-{uuid}"), Some(Arc::new(options)));
27
+ statsig.initialize().await.unwrap();
28
+
29
+ (statsig, logging_adapter)
30
+ }
31
+
32
+ #[tokio::test]
33
+ async fn test_environment_from_statsig_options() {
34
+ let (statsig, logging_adapter) = setup_with_environment(Some("production".to_string())).await;
35
+
36
+ let user = StatsigUser::with_user_id("test_user".to_string());
37
+ let _ = statsig.check_gate(&user, "test_public");
38
+ statsig.shutdown().await.unwrap();
39
+
40
+ assert_eq!(
41
+ logging_adapter
42
+ .no_diagnostics_logged_event_count
43
+ .load(Ordering::SeqCst),
44
+ 1
45
+ );
46
+
47
+ let event = logging_adapter.force_get_first_event();
48
+ assert_eq!(event["eventName"], "statsig::gate_exposure");
49
+
50
+ let user_data = event["user"].as_object().expect("user should be an object");
51
+ let statsig_environment = user_data
52
+ .get("statsigEnvironment")
53
+ .expect("statsigEnvironment should exist");
54
+
55
+ let env_obj = statsig_environment
56
+ .as_object()
57
+ .expect("statsigEnvironment should be an object");
58
+ assert_eq!(env_obj.get("tier"), Some(&json!("production")));
59
+ }
60
+
61
+ #[tokio::test]
62
+ async fn test_environment_from_user_overrides_options() {
63
+ // Test Case 2: Set environment on both StatsigOptions and StatsigUser
64
+ let (statsig, logging_adapter) = setup_with_environment(Some("production".to_string())).await;
65
+
66
+ let mut user_env = HashMap::new();
67
+ user_env.insert("tier".to_string(), "development".to_string());
68
+
69
+ let user = StatsigUserBuilder::new_with_user_id("test_user".to_string())
70
+ .statsig_environment(Some(user_env))
71
+ .build();
72
+
73
+ let _ = statsig.check_gate(&user, "test_public");
74
+ statsig.shutdown().await.unwrap();
75
+
76
+ assert_eq!(
77
+ logging_adapter
78
+ .no_diagnostics_logged_event_count
79
+ .load(Ordering::SeqCst),
80
+ 1
81
+ );
82
+
83
+ let event = logging_adapter.force_get_first_event();
84
+ assert_eq!(event["eventName"], "statsig::gate_exposure");
85
+
86
+ let user_data = event["user"].as_object().expect("user should be an object");
87
+ let statsig_environment = user_data
88
+ .get("statsigEnvironment")
89
+ .expect("statsigEnvironment should exist");
90
+
91
+ let env_obj = statsig_environment
92
+ .as_object()
93
+ .expect("statsigEnvironment should be an object");
94
+
95
+ assert_eq!(
96
+ env_obj.get("tier"),
97
+ Some(&json!("development")),
98
+ "User's tier value should override options tier value"
99
+ );
100
+ }
101
+
102
+ #[tokio::test]
103
+ async fn test_environment_only_from_user() {
104
+ // Test Case 3: Set environment just on StatsigUser
105
+ let (statsig, logging_adapter) = setup_with_environment(None).await;
106
+
107
+ let mut user_env = HashMap::new();
108
+ user_env.insert("tier".to_string(), "staging".to_string());
109
+
110
+ let user = StatsigUserBuilder::new_with_user_id("test_user".to_string())
111
+ .statsig_environment(Some(user_env))
112
+ .build();
113
+
114
+ let _ = statsig.check_gate(&user, "test_public");
115
+ statsig.shutdown().await.unwrap();
116
+
117
+ assert_eq!(
118
+ logging_adapter
119
+ .no_diagnostics_logged_event_count
120
+ .load(Ordering::SeqCst),
121
+ 1
122
+ );
123
+
124
+ let event = logging_adapter.force_get_first_event();
125
+ assert_eq!(event["eventName"], "statsig::gate_exposure");
126
+
127
+ // Verify user's environment values are used
128
+ let user_data = event["user"].as_object().expect("user should be an object");
129
+ let statsig_environment = user_data
130
+ .get("statsigEnvironment")
131
+ .expect("statsigEnvironment should exist when set on user");
132
+
133
+ let env_obj = statsig_environment
134
+ .as_object()
135
+ .expect("statsigEnvironment should be an object");
136
+
137
+ assert_eq!(
138
+ env_obj.get("tier"),
139
+ Some(&json!("staging")),
140
+ "User's tier value should be present"
141
+ );
142
+ }
143
+
144
+ #[tokio::test]
145
+ async fn test_no_environment_set() {
146
+ // Test Case 4: Neither StatsigOptions nor StatsigUser has environment
147
+ let (statsig, logging_adapter) = setup_with_environment(None).await;
148
+
149
+ let user = StatsigUser::with_user_id("test_user".to_string());
150
+ let _ = statsig.check_gate(&user, "test_public");
151
+ statsig.shutdown().await.unwrap();
152
+
153
+ assert_eq!(
154
+ logging_adapter
155
+ .no_diagnostics_logged_event_count
156
+ .load(Ordering::SeqCst),
157
+ 1
158
+ );
159
+
160
+ let event = logging_adapter.force_get_first_event();
161
+ assert_eq!(event["eventName"], "statsig::gate_exposure");
162
+
163
+ // Verify statsigEnvironment is not present when no environment is set
164
+ let user_data = event["user"].as_object().expect("user should be an object");
165
+ assert!(
166
+ user_data.get("statsigEnvironment").is_none(),
167
+ "statsigEnvironment should not exist when no environment is set"
168
+ );
169
+ }
170
+
171
+ #[tokio::test]
172
+ async fn test_environment_override_behavior() {
173
+ // Test Case 5: StatsigOptions has tier="production", user sets tier="testing"
174
+ let (statsig, logging_adapter) = setup_with_environment(Some("production".to_string())).await;
175
+
176
+ let mut user_env = HashMap::new();
177
+ user_env.insert("tier".to_string(), "testing".to_string());
178
+
179
+ let user = StatsigUserBuilder::new_with_user_id("test_user".to_string())
180
+ .statsig_environment(Some(user_env))
181
+ .build();
182
+
183
+ let _ = statsig.check_gate(&user, "test_public");
184
+ statsig.shutdown().await.unwrap();
185
+
186
+ let event = logging_adapter.force_get_first_event();
187
+
188
+ let user_data = event["user"].as_object().expect("user should be an object");
189
+ let statsig_environment = user_data
190
+ .get("statsigEnvironment")
191
+ .expect("statsigEnvironment should exist");
192
+
193
+ let env_obj = statsig_environment
194
+ .as_object()
195
+ .expect("statsigEnvironment should be an object");
196
+
197
+ // User's tier value should override options tier value
198
+ assert_eq!(
199
+ env_obj.get("tier"),
200
+ Some(&json!("testing")),
201
+ "User's tier value should override options tier value"
202
+ );
203
+ }