Class GcpHostApplicationBuilderExtensions
Namespace: Cephalon.Observability.Gcp.Hosting
Assembly: Cephalon.Observability.Gcp.dll
Adds GCP-hosted observability defaults and OTLP exporter wiring for Cephalon hosts.
public static class GcpHostApplicationBuilderExtensionsInheritance
Section titled “Inheritance”object ← GcpHostApplicationBuilderExtensions
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”AddCephalonGcp<TBuilder>(TBuilder, Action<GcpTelemetryExportOptions>?)
Section titled “ AddCephalonGcp<TBuilder>(TBuilder, Action<GcpTelemetryExportOptions>?)”Adds GCP-aware OpenTelemetry registration for the Cephalon engine diagnostics surface.
public static TBuilder AddCephalonGcp<TBuilder>(this TBuilder builder, Action<GcpTelemetryExportOptions>? configure = null) where TBuilder : IHostApplicationBuilderParameters
Section titled “Parameters”builder TBuilder
The target host-application builder.
configure Action<GcpTelemetryExportOptions>?
An optional callback that can extend or override the configuration-driven GCP 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 GCP-specific resource defaults and Google-managed 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 GCP resource defaults on top. When those shared endpoint settings
are absent and UseGoogleManagedIngestion is enabled, the package targets
https://telemetry.googleapis.com for traces and metrics over OTLP/HTTP by using Application
Default Credentials, while logs stay on the shared collector or platform logging path.