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
For more information, please go to [Collect a distributed trace](/dotnet/core/diagnostics/distributed-tracing-collection-walkthroughs).
1193
1193
1194
-
1195
-
1196
1194
### Application Insights Telemetry
1197
1195
1198
1196
The `Microsoft.FeatureManagement.Telemetry.ApplicationInsights`package provides a built-in telemetry publisher that sends feature flag evaluation data to [Application Insights](/azure/azure-monitor/app/app-insights-overview). The`Microsoft.FeatureManagement.Telemetry.ApplicationInsights`package also provides a telemetry initializer that automatically tags all events with`TargetingId` so that events may be linked to flag evaluations. To take advantage ofthis, add a reference to the package and register the Application Insights telemetry as in the following example.
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/quickstart-javascript-provider.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -408,4 +408,9 @@ run().catch(console.error);
408
408
In this quickstart, you created a new App Configuration store and learned how to access key-values using the App Configuration JavaScript provider in a Node.js app. To learn how to configure your app to dynamically refresh configuration settings, continue to the next tutorial.
Azure App Configuration is a managed service that helps developers centralize their application configurations simply and securely. The JavaScript configuration provider library enables loading configuration from an Azure App Configuration store in a managed way. This client library adds additional functionality above the Azure sdk for JavaScript.
21
+
20
22
## Load configuration
21
23
22
-
### Connect to Azure App Configuration
24
+
The `load` method exported in the `@azure/app-configuration-provider` package is used to load configuration from the Azure App Configuration. The `load` method allows you to either use Microsoft Entra ID or connection string to connect to the App Configuration store.
23
25
24
-
### Load specific key-values using selectors
26
+
### [Microsoft Entra ID](#tab/entra-id)
25
27
26
-
### Load key-values and trim prefix from keys
28
+
You use the `DefaultAzureCredential` to authenticate to your App Configuration store. Follow the [instructions](./concept-enable-rbac.md#authentication-with-token-credentials) to assign your credential the **App Configuration Data Reader** role.
constcredential=newDefaultAzureCredential(); // For more information, see https://learn.microsoft.com/azure/developer/javascript/sdk/credential-chains#use-defaultazurecredential-for-flexibility
35
+
36
+
asyncfunctionrun() {
37
+
// Connect to Azure App Configuration using a token credential and load all key-values with null label.
0 commit comments