ข้ามไปยังเนื้อหา

Class AzureMonitorHostApplicationBuilderExtensions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Observability.AzureMonitor.Hosting
Assembly: Cephalon.Observability.AzureMonitor.dll

Adds Azure Monitor exporter wiring for Cephalon hosts.

public static class AzureMonitorHostApplicationBuilderExtensions

objectAzureMonitorHostApplicationBuilderExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

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 : IHostApplicationBuilder

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.

TBuilder

The same builder instance for fluent host composition.

TBuilder

The host-application builder type to extend.

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.