Skip to content

Class OpenShiftHostApplicationBuilderExtensions

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

Adds Red Hat OpenShift-hosted observability defaults and in-cluster collector wiring for Cephalon hosts.

public static class OpenShiftHostApplicationBuilderExtensions

objectOpenShiftHostApplicationBuilderExtensions

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

AddCephalonOpenShift<TBuilder>(TBuilder, Action<OpenShiftTelemetryExportOptions>?)

Section titled “ AddCephalonOpenShift<TBuilder>(TBuilder, Action<OpenShiftTelemetryExportOptions>?)”

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

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

builder TBuilder

The target host-application builder.

configure Action<OpenShiftTelemetryExportOptions>?

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

TBuilder

The same builder instance for fluent host composition.

TBuilder

The host-application builder type to extend.

This package keeps OpenShift-specific collector selection, trust material, and hosted 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 OpenShift 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 OpenShift operator-managed collectors stay discoverable without moving provider logic back into the engine core.