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

Class HuaweiCloudTelemetryExportOptions

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

Namespace: Cephalon.Observability.HuaweiCloud.Configuration
Assembly: Cephalon.Observability.HuaweiCloud.dll

Configures Huawei Cloud observability defaults on top of the shared Cephalon telemetry contract.

public sealed class HuaweiCloudTelemetryExportOptions

objectHuaweiCloudTelemetryExportOptions

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

Initializes a new instance of the class.

public HuaweiCloudTelemetryExportOptions()

Gets or sets the Huawei Cloud APM OTLP endpoint used for direct managed trace ingestion.

public string? ApmEndpoint { get; set; }

string?

This endpoint is only used when is enabled and the shared Engine:Observability:Telemetry:Endpoint setting is omitted.

Gets or sets the authentication token written to the Huawei Cloud Authentication header for direct managed trace ingestion.

public string? AuthenticationToken { get; set; }

string?

Gets or sets the hosted Huawei Cloud platform whose default resource attributes should be applied.

public string? HostedPlatform { get; set; }

string?

Supported values are ecs, cce, and functiongraph.

Gets or sets the Huawei Cloud region to stamp onto exported resources when one should be explicit.

public string? Region { get; set; }

string?

Gets or sets a value indicating whether the package should send traces directly to Huawei Cloud APM when no shared OTLP endpoint is configured.

public bool UseApmManagedTraceIngestion { get; set; }

bool

This direct path is intentionally trace-only. Logs and metrics stay on the shared collector path or on another runtime-specific route instead of being redirected implicitly.

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Binds Huawei Cloud telemetry export options from configuration.

public static HuaweiCloudTelemetryExportOptions FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")

configuration IConfiguration

The application configuration root.

sectionPath string

The configuration section path that contains the engine settings. The default is Engine.

HuaweiCloudTelemetryExportOptions

The bound Huawei Cloud telemetry export options.