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

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 GcpHostApplicationBuilderExtensions

objectGcpHostApplicationBuilderExtensions

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

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 : IHostApplicationBuilder

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.

TBuilder

The same builder instance for fluent host composition.

TBuilder

The host-application builder type to extend.

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.