Class DigitalOceanTelemetryExportOptions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Observability.DigitalOcean.Configuration
Assembly: Cephalon.Observability.DigitalOcean.dll
Configures DigitalOcean observability defaults on top of the shared Cephalon telemetry contract.
public sealed class DigitalOceanTelemetryExportOptionsInheritance
Section titled “Inheritance”object ← DigitalOceanTelemetryExportOptions
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”DigitalOceanTelemetryExportOptions()
Section titled “ DigitalOceanTelemetryExportOptions()”Initializes a new instance of the
public DigitalOceanTelemetryExportOptions()Properties
Section titled “Properties”Gets or sets the App Platform application identifier to stamp onto exported resources.
public string? AppId { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”When omitted, the package falls back to the APP_ID or DIGITALOCEAN_APP_ID environment
variable when it is available.
AppUrl
Section titled “ AppUrl”Gets or sets the App Platform public URL to stamp onto exported resources.
public string? AppUrl { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”When omitted, the package falls back to the APP_URL or DIGITALOCEAN_APP_URL
environment variable when it is available.
ClusterName
Section titled “ ClusterName”Gets or sets the Kubernetes cluster name to stamp onto exported resources for DOKS deployments.
public string? ClusterName { get; set; }Property Value
Section titled “Property Value”CollectorNamespace
Section titled “ CollectorNamespace”Gets or sets the collector namespace used to build the in-cluster DOKS collector endpoint.
public string? CollectorNamespace { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”When omitted, the package falls back to POD_NAMESPACE
when the host runs inside a pod.
CollectorPort
Section titled “ CollectorPort”Gets or sets the collector port used for the in-cluster DOKS collector endpoint.
public int? CollectorPort { get; set; }Property Value
Section titled “Property Value”int?
Remarks
Section titled “Remarks”When omitted, the package falls back to 4317 for otlp / otlp/grpc and
4318 for otlp/http.
CollectorScheme
Section titled “ CollectorScheme”Gets or sets the URI scheme used for the in-cluster DOKS collector endpoint.
public string? CollectorScheme { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Supported values are http and https. The default is http.
CollectorServiceName
Section titled “ CollectorServiceName”Gets or sets the collector service name used to build the in-cluster DOKS collector endpoint.
public string? CollectorServiceName { get; set; }Property Value
Section titled “Property Value”DropletId
Section titled “ DropletId”Gets or sets the Droplet identifier to stamp onto exported resources.
public string? DropletId { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”When omitted and
DropletMetadataEndpoint
Section titled “ DropletMetadataEndpoint”Gets or sets the base URI of the Droplet metadata-service endpoint.
public string? DropletMetadataEndpoint { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”When omitted, the package falls back to the standard DigitalOcean metadata-service base URI. This override exists mainly for proxies, alternative routing, or automated testing.
Headers
Section titled “ Headers”Gets or sets the raw OTLP headers string added to collector requests.
public string? Headers { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Use the standard OTLP key=value comma-separated format when a collector, gateway, or route
expects explicit headers.
HostedPlatform
Section titled “ HostedPlatform”Gets or sets the DigitalOcean deployment target whose hosted defaults should be applied.
public string? HostedPlatform { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Supported values are droplet, doks, and app-platform. The package maps them to
package-specific cloud.platform values so the collector-first DigitalOcean slice stays explicit
without pretending those values are part of the engine core.
MetadataTimeoutMilliseconds
Section titled “ MetadataTimeoutMilliseconds”Gets or sets the timeout, in milliseconds, used for Droplet metadata-service lookups.
public int? MetadataTimeoutMilliseconds { get; set; }Property Value
Section titled “Property Value”int?
Remarks
Section titled “Remarks”When omitted, the package falls back to a short one-second timeout so non-Droplet hosts do not stall during best-effort metadata detection.
Namespace
Section titled “ Namespace”Gets or sets the workload namespace to stamp onto exported resources for DOKS deployments.
public string? Namespace { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”When omitted, the package falls back to the current pod namespace through the POD_NAMESPACE
environment variable when it is available.
Region
Section titled “ Region”Gets or sets the DigitalOcean region slug to stamp onto exported resources.
public string? Region { get; set; }Property Value
Section titled “Property Value”TrustedCaCertificatePath
Section titled “ TrustedCaCertificatePath”Gets or sets the filesystem path to a trusted CA bundle used for HTTPS OTLP/HTTP traces and metrics against shared or in-cluster DigitalOcean collectors.
public string? TrustedCaCertificatePath { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Because the current OTLP logging exporter does not support custom HttpClient wiring for HTTP,
the package rejects configurations that require this custom CA path for logs. OTLP/gRPC custom CA
wiring is also left explicit and unsupported for now.
UseDropletMetadataDefaults
Section titled “ UseDropletMetadataDefaults”Gets or sets a value indicating whether the package should query the Droplet metadata service to fill
in best-effort host.id, host.name, and cloud.region values when they are missing.
public bool UseDropletMetadataDefaults { get; set; }Property Value
Section titled “Property Value”UseInClusterCollectorService
Section titled “ UseInClusterCollectorService”Gets or sets a value indicating whether the package should target an in-cluster collector service for DOKS deployments when no shared endpoint is configured.
public bool UseInClusterCollectorService { get; set; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Binds DigitalOcean telemetry export options from configuration.
public static DigitalOceanTelemetryExportOptions 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”DigitalOceanTelemetryExportOptions
The bound DigitalOcean telemetry export options.