diff --git a/posthog/models/feature_flag/flag_matching.py b/posthog/models/feature_flag/flag_matching.py index 0ee0deb83fb6e..2849fac5d8684 100644 --- a/posthog/models/feature_flag/flag_matching.py +++ b/posthog/models/feature_flag/flag_matching.py @@ -457,9 +457,13 @@ def condition_eval(key, condition): } condition_eval(is_set_key, is_set_condition) - for index, condition in enumerate(feature_flag.conditions): - key = f"flag_{feature_flag.pk}_condition_{index}" - condition_eval(key, condition) + with start_span( + op="parse_feature_flag_conditions", + description=f"feature_flag={feature_flag.pk} key={feature_flag.key}", + ): + for index, condition in enumerate(feature_flag.conditions): + key = f"flag_{feature_flag.pk}_condition_{index}" + condition_eval(key, condition) if len(person_fields) > 0: person_query = person_query.values(*person_fields)