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 HuaweiCloudTelemetryExportOptionsInheritance
Section titled “Inheritance”object ← HuaweiCloudTelemetryExportOptions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”HuaweiCloudTelemetryExportOptions()
Section titled “ HuaweiCloudTelemetryExportOptions()”Initializes a new instance of the
public HuaweiCloudTelemetryExportOptions()Properties
Section titled “Properties”ApmEndpoint
Section titled “ ApmEndpoint”Gets or sets the Huawei Cloud APM OTLP endpoint used for direct managed trace ingestion.
public string? ApmEndpoint { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”This endpoint is only used when Engine:Observability:Telemetry:Endpoint setting is omitted.
AuthenticationToken
Section titled “ AuthenticationToken”Gets or sets the authentication token written to the Huawei Cloud Authentication header for
direct managed trace ingestion.
public string? AuthenticationToken { get; set; }Property Value
Section titled “Property Value”HostedPlatform
Section titled “ HostedPlatform”Gets or sets the hosted Huawei Cloud platform whose default resource attributes should be applied.
public string? HostedPlatform { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Supported values are ecs, cce, and functiongraph.
Region
Section titled “ Region”Gets or sets the Huawei Cloud region to stamp onto exported resources when one should be explicit.
public string? Region { get; set; }Property Value
Section titled “Property Value”UseApmManagedTraceIngestion
Section titled “ UseApmManagedTraceIngestion”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; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”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.
Methods
Section titled “Methods”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")Parameters
Section titled “Parameters”configuration IConfiguration
The application configuration root.
sectionPath string
The configuration section path that contains the engine settings. The default is Engine.
Returns
Section titled “Returns”HuaweiCloudTelemetryExportOptions
The bound Huawei Cloud telemetry export options.