Skip to content

Commit 98fc362

Browse files
sakshamg1304rohitesh-wingify
authored andcommitted
fix: usage stats not sent with batching enabled
1 parent 5466251 commit 98fc362

5 files changed

Lines changed: 10 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.20.1] - 2026-03-23
9+
10+
### Fixed
11+
12+
- Fixed SDK usage statistics not being sent when event batching is enabled.
13+
814
## [1.20.0] - 2026-03-03
915

1016
### Added

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def run(self):
121121

122122
setup(
123123
name="vwo-fme-python-sdk",
124-
version="1.20.0",
124+
version="1.20.1",
125125
description="VWO Feature Management and Experimentation SDK for Python",
126126
long_description=long_description,
127127
long_description_content_type="text/markdown",

vwo/constants/Constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Constants:
1717
# TODO: read from setup.py
1818
sdk_meta = {
1919
"name": "vwo-fme-python-sdk",
20-
"version": "1.20.0"
20+
"version": "1.20.1"
2121
}
2222

2323
# Constants

vwo/utils/event_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def send_sdk_usage_stats_event(usage_stats_account_id: int) -> None:
6565
vwo_instance = VWOClient.get_instance()
6666

6767
# Check if batch events are enabled
68-
if vwo_instance.batch_event_queue is not None and vwo_instance.batch_event_queue.is_enabled():
68+
if vwo_instance.batch_event_queue is not None:
6969
# Enqueue the event to the batch queue
7070
vwo_instance.batch_event_queue.enqueue(payload)
7171
else:

vwo/utils/meg_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def _is_rollout_rule_for_feature_passed(
143143
)
144144
if roll_out_rules:
145145
for rule in roll_out_rules:
146-
pre_segmentation_result, whitelisted_object, updated_decision = (
146+
pre_segmentation_result, whitelisted_object, updated_decision, payload = (
147147
evaluate_rule(
148148
settings,
149149
feature,

0 commit comments

Comments
 (0)