Class HuaweiCloudHostApplicationBuilderExtensions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Observability.HuaweiCloud.Hosting
Assembly: Cephalon.Observability.HuaweiCloud.dll
Adds Huawei Cloud-hosted observability defaults and optional managed APM trace ingestion for Cephalon hosts.
public static class HuaweiCloudHostApplicationBuilderExtensionsInheritance
Section titled “Inheritance”object ← HuaweiCloudHostApplicationBuilderExtensions
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”AddCephalonHuaweiCloud<TBuilder>(TBuilder, Action<HuaweiCloudTelemetryExportOptions>?)
Section titled “ AddCephalonHuaweiCloud<TBuilder>(TBuilder, Action<HuaweiCloudTelemetryExportOptions>?)”Adds Huawei Cloud-aware OpenTelemetry registration for the Cephalon engine diagnostics surface.
public static TBuilder AddCephalonHuaweiCloud<TBuilder>(this TBuilder builder, Action<HuaweiCloudTelemetryExportOptions>? configure = null) where TBuilder : IHostApplicationBuilderParameters
Section titled “Parameters”builder TBuilder
The target host-application builder.
configure Action<HuaweiCloudTelemetryExportOptions>?
An optional callback that can extend or override the configuration-driven Huawei Cloud telemetry 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 Huawei Cloud-specific resource defaults and managed APM trace-ingestion concerns
outside Cephalon.Engine and the baseline observability package. It still uses the shared
Engine:Observability:Telemetry contract so hosts can keep one explicit telemetry surface.
When Endpoint or UseSelfHostedDefaults is configured, the package keeps using the shared
collector-oriented OTLP path and layers Huawei Cloud resource defaults on top. When those shared
endpoint settings are absent and UseApmManagedTraceIngestion is enabled, the package targets the
configured Huawei Cloud APM OTLP/gRPC endpoint for traces only by sending the configured
Authentication header. Logs and metrics stay on the shared collector path or another
runtime-specific path instead of being redirected implicitly.