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

Class AwsHostApplicationBuilderExtensions

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

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

Adds AWS-hosted observability defaults and OTLP exporter wiring for Cephalon hosts.

public static class AwsHostApplicationBuilderExtensions

objectAwsHostApplicationBuilderExtensions

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

AddCephalonAws<TBuilder>(TBuilder, Action<AwsTelemetryExportOptions>?)

Section titled “ AddCephalonAws<TBuilder>(TBuilder, Action<AwsTelemetryExportOptions>?)”

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

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

builder TBuilder

The target host-application builder.

configure Action<AwsTelemetryExportOptions>?

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

TBuilder

The same builder instance for fluent host composition.

TBuilder

The host-application builder type to extend.

This package keeps AWS-specific propagation, resource detection, and AWS SDK instrumentation outside Cephalon.Engine and the baseline observability package. It still uses the shared Engine:Observability:Telemetry contract and the same OTLP exporter path as the cloud-neutral OpenTelemetry package.

Registration is skipped when every signal is disabled or when no export endpoint is configured and explicit self-hosted defaults are not enabled. When HostedPlatform is supplied, the package adds AWS-specific resource detectors and hosted-platform defaults on top of the existing service-name, service-version, and optional deployment.environment.name defaults.