Skip to content

Commit

Permalink
include feature flag data on metric events
Browse files Browse the repository at this point in the history
  • Loading branch information
andehen committed Dec 17, 2024
1 parent 8529b78 commit d81ee0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions posthog/management/commands/generate_experiment_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def handle(self, *args, **options):
distinct_id=distinct_id,
event=action.event,
timestamp=random_timestamp + timedelta(minutes=1),
properties={
f"$feature/{experiment_id}": variant,
},
)

# TODO: need to figure out how to wait for the data to be flushed. shutdown() doesn't work as expected.
Expand Down

0 comments on commit d81ee0d

Please sign in to comment.