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
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/feature-management-javascript-reference.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -632,8 +632,8 @@ The process of allocating a feature's variants is determined by the `allocation`
632
632
633
633
```json
634
634
"allocation": {
635
-
"default_when_enabled": "Small",
636
635
"default_when_disabled": "Small",
636
+
"default_when_enabled": "Small",
637
637
"user": [
638
638
{
639
639
"variant": "Big",
@@ -843,7 +843,7 @@ The telemetry publisher sends `FeatureEvaluation` custom events to the Applicati
843
843
844
844
### Targeting telemetry processor
845
845
846
-
If you have implemented [`ITargetingContextAccessor`](#itargetingcontextaccessor), you can use the built-in Application Insights telemetry processor to automatically attached targeting id information to telemetry by calling `createTargetingTelemetryProcessor` function.
846
+
If you have implemented [`ITargetingContextAccessor`](#itargetingcontextaccessor), you can use the built-in Application Insights telemetry processor to automatically attach targeting ID information to all telemetry by calling the`createTargetingTelemetryProcessor` function.
This ensures that every telemetry sent to Application Insights includes the targeting id information, allowing you to correlate feature flag usage in your analytics.
858
+
This ensures that every telemetry item sent to Application Insights includes the user's targeting ID information (userId and groups), allowing you to correlate feature flag usage with specific users or groups in your analytics.
859
+
860
+
If you are using the targeting telemetry processor, instead of calling the `trackEvent` method provided by the feature management package, you can directly call the `trackEvent` method from the Application Insights SDK. The targeting ID information will be automatically attached to the custom event telemetry's `customDimensions`.
861
+
862
+
```typescript
863
+
// Instead of calling trackEvent and passing the app insights client
0 commit comments