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

Class TelemetryExportOptions

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

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

Describes how operators intend host telemetry to be exported.

public sealed class TelemetryExportOptions

objectTelemetryExportOptions

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

These settings let Cephalon packages, hosts, and downstream companion packages agree on provider, protocol, endpoint, and enabled signals without forcing exporter dependencies into the engine core. Companion packages such as Cephalon.Observability.OpenTelemetry, Cephalon.Observability.AlibabaCloud, Cephalon.Observability.Aws, Cephalon.Observability.Gcp, Cephalon.Observability.DigitalOcean, Cephalon.Observability.GrafanaCloud, Cephalon.Observability.HuaweiCloud, Cephalon.Observability.NewRelic, Cephalon.Observability.OracleCloud, Cephalon.Observability.OpenShift, Cephalon.Observability.Tanzu, or Cephalon.Observability.AzureMonitor can interpret the same contract when a host wants a supported export path, including the explicit self-hosted collector defaults that remain outside Cephalon.Engine. The same contract is also intended for developer-authored provider packages that need to layer Cloudflare, internal gateway, or other deployment-targeted auth, resource attributes, and hosted defaults on top of the existing ILogger pipeline.

Creates telemetry export options with the default guidance values.

public TelemetryExportOptions()

Gets or sets the target export endpoint, if one is configured. Companion packages interpret this as the base collector endpoint for the selected export protocol.

public string? Endpoint { get; set; }

string?

Gets or sets a value indicating whether logs should be exported.

public bool ExportLogs { get; set; }

bool

Gets or sets a value indicating whether metrics should be exported.

public bool ExportMetrics { get; set; }

bool

Gets or sets a value indicating whether traces should be exported.

public bool ExportTraces { get; set; }

bool

Gets or sets the telemetry transport protocol, such as otlp, otlp/grpc, or otlp/http.

public string Protocol { get; set; }

string

Gets or sets the telemetry provider name, such as OpenTelemetry.

public string Provider { get; set; }

string

Gets or sets a value indicating whether companion packages should apply the supported self-hosted collector and runtime defaults when the export endpoint is omitted.

public bool UseSelfHostedDefaults { get; set; }

bool

The shipped OpenTelemetry companion interprets this flag as an explicit self-hosted path on top of the shared OTLP baseline, using the standard local collector ports and host-managed runtime resource defaults instead of vendor-specific wiring.