Class AzureMonitorHostApplicationBuilderExtensions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Observability.AzureMonitor.Hosting
Assembly: Cephalon.Observability.AzureMonitor.dll
Adds Azure Monitor exporter wiring for Cephalon hosts.
public static class AzureMonitorHostApplicationBuilderExtensionsInheritance
Section titled “Inheritance”object ← AzureMonitorHostApplicationBuilderExtensions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”AddCephalonAzureMonitor<TBuilder>(TBuilder, Action<AzureMonitorExportOptions>?)
Section titled “ AddCephalonAzureMonitor<TBuilder>(TBuilder, Action<AzureMonitorExportOptions>?)”Adds Azure Monitor exporter registration for the Cephalon engine diagnostics surface.
public static TBuilder AddCephalonAzureMonitor<TBuilder>(this TBuilder builder, Action<AzureMonitorExportOptions>? configure = null) where TBuilder : IHostApplicationBuilderParameters
Section titled “Parameters”builder TBuilder
The target host-application builder.
configure Action<AzureMonitorExportOptions>?
An optional callback that can extend or override the configuration-driven Azure Monitor export options.
Returns
Section titled “Returns”TBuilder
The same builder instance for fluent host composition.
Type Parameters
Section titled “Type Parameters”TBuilder
The host-application builder type to extend.
Remarks
Section titled “Remarks”
This package keeps Azure-specific exporter wiring outside Cephalon.Engine and
Cephalon.Observability. Hosts opt in explicitly when they want Azure Monitor /
Application Insights export over the same shared ILogger and OpenTelemetry baseline.
Registration is skipped when every signal is disabled or when no Azure Monitor connection string
is configured. When HostedPlatform is supplied, the package adds Azure-specific
cloud.provider, cloud.platform, and deployment.environment.name resource
attributes on top of the existing service-name and service-version defaults.