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

Class KubernetesHostApplicationBuilderExtensions

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

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

Adds Kubernetes-hosted observability defaults and in-cluster collector wiring for Cephalon hosts.

public static class KubernetesHostApplicationBuilderExtensions

objectKubernetesHostApplicationBuilderExtensions

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

AddCephalonKubernetes<TBuilder>(TBuilder, Action<KubernetesTelemetryExportOptions>?)

Section titled “ AddCephalonKubernetes<TBuilder>(TBuilder, Action<KubernetesTelemetryExportOptions>?)”

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

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

builder TBuilder

The target host-application builder.

configure Action<KubernetesTelemetryExportOptions>?

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

TBuilder

The same builder instance for fluent host composition.

TBuilder

The host-application builder type to extend.

This package keeps Kubernetes-specific collector selection, cluster-local trust material, and resource defaults 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 Kubernetes resource defaults on top. When those shared endpoint settings are absent and UseInClusterCollectorService is enabled, the package resolves an explicit in-cluster service endpoint so generic Kubernetes deployments can stay collector-first without forcing teams onto a vendor-specific companion package.