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

Class AlibabaCloudHostApplicationBuilderExtensions

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

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

Adds Alibaba Cloud-hosted observability defaults and optional managed OpenTelemetry ingestion for Cephalon hosts.

public static class AlibabaCloudHostApplicationBuilderExtensions

objectAlibabaCloudHostApplicationBuilderExtensions

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

AddCephalonAlibabaCloud<TBuilder>(TBuilder, Action<AlibabaCloudTelemetryExportOptions>?)

Section titled “ AddCephalonAlibabaCloud<TBuilder>(TBuilder, Action<AlibabaCloudTelemetryExportOptions>?)”

Adds Alibaba Cloud-aware OpenTelemetry registration for the Cephalon engine diagnostics surface.

public static TBuilder AddCephalonAlibabaCloud<TBuilder>(this TBuilder builder, Action<AlibabaCloudTelemetryExportOptions>? configure = null) where TBuilder : IHostApplicationBuilder

builder TBuilder

The target host-application builder.

configure Action<AlibabaCloudTelemetryExportOptions>?

An optional callback that can extend or override the configuration-driven Alibaba Cloud telemetry export options.

TBuilder

The same builder instance for fluent host composition.

TBuilder

The host-application builder type to extend.

This package keeps Alibaba Cloud-specific resource defaults and managed OpenTelemetry-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 Alibaba Cloud resource defaults on top. When those shared endpoint settings are absent and UseManagedOpenTelemetryIngestion is enabled, the package targets the configured Alibaba Cloud Managed Service for OpenTelemetry path for traces and metrics only. Logs stay on the shared collector path, SLS, or another runtime-specific route instead of being redirected implicitly.