Skip to content

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 HuaweiCloudHostApplicationBuilderExtensions

objectHuaweiCloudHostApplicationBuilderExtensions

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

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

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.

TBuilder

The same builder instance for fluent host composition.

TBuilder

The host-application builder type to extend.

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.