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 KubernetesHostApplicationBuilderExtensionsInheritance
Section titled “Inheritance”object ← KubernetesHostApplicationBuilderExtensions
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”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 : IHostApplicationBuilderParameters
Section titled “Parameters”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.
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 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.