Skip to content

Commit

Permalink
chore(decide): Add missing span instrumentation (#17910)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar authored Oct 11, 2023
1 parent 6f4f440 commit 33f8ad9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions posthog/models/feature_flag/flag_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 33f8ad9

Please sign in to comment.