You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. If your environment variable for your App Configuration store endpoint isn't setup. Set the `AzureAppConfigurationEndpoint` environment variable to the endpoint of your App Configuration store.
109
-
110
-
If you use the Windows command prompt, run the following command and restart the command prompt to allow the change to take effect:
1. In the command prompt, in the *QuoteOfTheDay* folder, run: `flask run`.
129
-
1. Wait for the app to start, and then open a browser and navigate to `http://localhost:5000/`.
108
+
1. Run the application, [see step 2 of Use variant feature flags](./howto-variant-feature-flags-python.md#build-and-run-the-app) .
130
109
1. Create 10 different users and log into the application. As you log in with each user, you get a different message variant for some of them. ~50% of the time you get no message. 25% of the time you get the message "Hello!" and 25% of the time you get "I hope this makes your day!".
131
110
1. With some of the users select the **Like** button to trigger the telemetry event.
132
111
1. Open your Application Insights resource in the Azure portal and select **Logs** under **Monitoring**. In the query window, run the following query to see the telemetry events:
133
112
134
113
```kusto
135
-
customEvents
136
-
| where name == "FeatureEvaluation" or name == "Liked"
137
-
| order by timestamp desc
114
+
// Total users
115
+
let total_users =
116
+
customEvents
117
+
| where name == "FeatureEvaluation"
118
+
| summarize TotalUsers = count() by Variant = tostring(customDimensions.Variant);
// Display the combined data along with the sum of total users and hearted users
146
+
combined_data
147
+
| union (total_sum)
138
148
```
139
149
140
150
You see one "FeatureEvaluation" for each time the quote page was loaded and one "Liked" event for each time the like button was clicked. The "FeatureEvaluation" event have a custom property called `FeatureName` with the name of the feature flag that was evaluated. Both events have a custom property called `TargetingId` with the name of the user that liked the quote.
0 commit comments