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-dotnet-reference.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1360,11 +1360,11 @@ The `telemetry` section of a feature flag has the following properties:
1360
1360
| Property | Description |
1361
1361
|----------------|----------------|
1362
1362
|`enabled`| Specifies whether telemetry should be published for the feature flag. |
1363
-
|`metadata`|A collection of key-value pairs, modeled as a dictionary, that can be used to attach custom metadata about the feature flag to evaluation events.
1363
+
|`metadata`|A collection of key-value pairs, modeled as a dictionary, that can be used to attach custom metadata about the feature flag to evaluation events.|
1364
1364
1365
1365
### Custom Telemetry Publishing
1366
1366
1367
-
The feature manager has its own `ActivitySource`with name "Microsoft.FeatureManagement". If`telemetry` is enabled for a feature flag, whenever the evaluation ofthis feature flag is started, the feature manager will start an `Activity`. When the feature flag evaluation is finished, the feature manager will add an `ActivityEvent`called "FeatureFlag" to the `Activity.Current`.The"FeatureFlag"event will have tags which include the information about the feature flag evaluation. Specifically, the tags will include the following fields:
1367
+
The feature manager has its own `ActivitySource`named "Microsoft.FeatureManagement". If`telemetry` is enabled for a feature flag, whenever the evaluation ofthe feature flag is started, the feature manager will start an `Activity`. When the feature flag evaluation is finished, the feature manager will add an `ActivityEvent`named `"FeatureFlag"` to the current activity.The`"FeatureFlag"`event will have tags which include the information about the feature flag evaluation. Specifically, the tags will include the following fields:
1368
1368
1369
1369
| Tag | Description |
1370
1370
|----------------|----------------|
@@ -1416,6 +1416,9 @@ The `Microsoft.FeatureManagement.Telemetry.ApplicationInsights` package provides
> To ensure that `TargetingTelemetryInitializer` works as expected, the `TargetingHttpContextMiddleware` described below should be used.
1421
+
1419
1422
To enable persistance of targeting context in the current activity, you can use the [`TargetingHttpContextMiddleware`](https://github.com/microsoft/FeatureManagement-Dotnet/blob/preview/src/Microsoft.FeatureManagement.AspNetCore/TargetingHttpContextMiddleware.cs).
An example of its usage can be found in the [EvaluationDataToApplicationInsights](https://github.com/microsoft/FeatureManagement-Dotnet/tree/preview/examples/EvaluationDataToApplicationInsights) example.
1426
1429
1427
-
> [!NOTE]
1428
-
> To ensure that `TargetingTelemetryInitializer` works as expected, the `TargetingHttpContextMiddleware` described below should be used.
1429
-
1430
1430
#### Prerequisite
1431
1431
1432
1432
This telemetry publisher depends on Application Insights already being [setup](/azure/azure-monitor/app/asp-net-core#enable-application-insights-server-side-telemetry-no-visual-studio) and registered as an application service. For example, that is done [here](https://github.com/microsoft/FeatureManagement-Dotnet/blob/preview/examples/EvaluationDataToApplicationInsights/Program.cs#L20C1-L20C54) in the example application.
0 commit comments