<PackageReference Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.8.3" />

Azure.Monitor.OpenTelemetry.LiveMetrics.AzureMonitorLiveMetricsOptions

class AzureMonitorLiveMetricsOptions : ClientOptions
public string ConnectionString { get; set; }

The Connection String provides users with a single configuration setting to identify the Azure Monitor resource and endpoint.

public TokenCredential Credential { get; set; }

Get or sets the value of TokenCredential. If TokenCredential is not set, AAD authentication is disabled and Instrumentation Key from the Connection String will be used.

public bool EnableLiveMetrics { get; set; }

Enables or disables the Live Metrics feature. This property is enabled by default. Note: Enabling Live Metrics incurs no additional billing or costs. However, it does introduce a performance overhead due to extra data collection, processing, and networking calls. This overhead is only significant when the LiveMetrics portal is actively used in the UI. Once the portal is closed, LiveMetrics reverts to a 'silent' mode with minimal to no overhead. .