Class TelemetryExportOptions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Observability.Configuration
Assembly: Cephalon.Observability.dll
Describes how operators intend host telemetry to be exported.
public sealed class TelemetryExportOptionsInheritance
Section titled “Inheritance”object ← TelemetryExportOptions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Remarks
Section titled “Remarks”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.
Constructors
Section titled “Constructors”TelemetryExportOptions()
Section titled “ TelemetryExportOptions()”Creates telemetry export options with the default guidance values.
public TelemetryExportOptions()Properties
Section titled “Properties”Endpoint
Section titled “ Endpoint”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; }Property Value
Section titled “Property Value”ExportLogs
Section titled “ ExportLogs”Gets or sets a value indicating whether logs should be exported.
public bool ExportLogs { get; set; }Property Value
Section titled “Property Value”ExportMetrics
Section titled “ ExportMetrics”Gets or sets a value indicating whether metrics should be exported.
public bool ExportMetrics { get; set; }Property Value
Section titled “Property Value”ExportTraces
Section titled “ ExportTraces”Gets or sets a value indicating whether traces should be exported.
public bool ExportTraces { get; set; }Property Value
Section titled “Property Value”Protocol
Section titled “ Protocol”Gets or sets the telemetry transport protocol, such as otlp, otlp/grpc, or otlp/http.
public string Protocol { get; set; }Property Value
Section titled “Property Value”Provider
Section titled “ Provider”Gets or sets the telemetry provider name, such as OpenTelemetry.
public string Provider { get; set; }Property Value
Section titled “Property Value”UseSelfHostedDefaults
Section titled “ UseSelfHostedDefaults”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; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”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.