Skip to content

Commit 0edf930

Browse files
committed
Add Live Metrics configuration option for Node.js
1 parent 7e6fc5e commit 0edf930

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

articles/azure-monitor/app/opentelemetry-configuration.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,20 @@ For more information on Java configuration, see [Configuration options: Azure Mo
420420
> [!IMPORTANT]
421421
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
422422
423+
Users can enable/disable Live Metrics when configuring the Distro using the `enableLiveMetrics` property.
424+
425+
```typescript
426+
const options: AzureMonitorOpenTelemetryOptions = {
427+
azureMonitorExporterOptions: {
428+
connectionString:
429+
process.env["APPLICATIONINSIGHTS_CONNECTION_STRING"] || "<your connection string>",
430+
},
431+
enableLiveMetrics: false
432+
};
433+
434+
useAzureMonitor(options);
435+
```
436+
423437
<!--
424438

425439
TODO:

0 commit comments

Comments
 (0)