Class AzureMonitorExportOptions
Namespace: Cephalon.Observability.AzureMonitor.Configuration
Assembly: Cephalon.Observability.AzureMonitor.dll
Configures Azure Monitor exporter wiring on top of the shared Cephalon telemetry contract.
public sealed class AzureMonitorExportOptionsInheritance
Section titled “Inheritance”object ← AzureMonitorExportOptions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”AzureMonitorExportOptions()
Section titled “ AzureMonitorExportOptions()”Initializes a new instance of the
public AzureMonitorExportOptions()Properties
Section titled “Properties”ConnectionString
Section titled “ ConnectionString”Gets or sets the Azure Monitor / Application Insights connection string used by the exporter.
public string? ConnectionString { get; set; }Property Value
Section titled “Property Value”HostedPlatform
Section titled “ HostedPlatform”Gets or sets the hosted Azure platform whose default resource attributes should be applied.
public string? HostedPlatform { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Supported values are appservice, functions, aks, containerapps, and vm.
The package maps them to the current OpenTelemetry cloud.platform attribute values.
UseDefaultAzureCredential
Section titled “ UseDefaultAzureCredential”Gets or sets a value indicating whether the exporter should authenticate with DefaultAzureCredential.
public bool UseDefaultAzureCredential { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The connection string still determines the Azure Monitor resource endpoint. This flag only adds Azure Active Directory authentication on top of that endpoint selection.
Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Binds Azure Monitor export options from configuration.
public static AzureMonitorExportOptions FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration
The application configuration root.
sectionPath string
The configuration section path that contains the engine settings. The default is Engine.
Returns
Section titled “Returns”The bound Azure Monitor export options.