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

Class OracleCloudTelemetryExportOptions

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

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

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

public sealed class OracleCloudTelemetryExportOptions

objectOracleCloudTelemetryExportOptions

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 OracleCloudTelemetryExportOptions()

Gets or sets the Oracle Cloud APM data upload endpoint used to build direct managed OTLP/HTTP ingestion URLs.

public string? DataUploadEndpoint { get; set; }

string?

This value should be the Oracle Cloud APM DataUploadEndpoint for the target domain. The package appends the documented OpenTelemetry signal paths when direct managed ingestion is enabled.

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

public string? HostedPlatform { get; set; }

string?

Supported values are compute, oke, and functions. The package maps them to the current OpenTelemetry cloud.platform attribute values.

Gets or sets the Oracle Cloud APM private metrics data key used for direct managed metrics ingestion.

public string? MetricsDataKey { get; set; }

string?

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

public string? Region { get; set; }

string?

Gets or sets the Oracle Cloud APM trace data key used for direct managed trace ingestion.

public string? TraceDataKey { get; set; }

string?

When is true, this should be the public trace key. Otherwise it should be the private trace key.

Gets or sets a value indicating whether the package should use Oracle Cloud APM managed OpenTelemetry ingestion when no shared collector endpoint is configured.

public bool UseManagedOpenTelemetryIngestion { get; set; }

bool

This direct managed path is intentionally limited to traces and metrics over OTLP/HTTP. Logs stay on the shared collector path, Oracle Log Analytics, or another runtime-specific route instead of being redirected implicitly.

Gets or sets a value indicating whether trace ingestion should use the public Oracle Cloud APM data key path instead of the private data key path.

public bool UsePublicTraceDataKey { get; set; }

bool

Metrics always use the private-key path in Oracle Cloud APM.

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Binds Oracle Cloud telemetry export options from configuration.

public static OracleCloudTelemetryExportOptions 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.

OracleCloudTelemetryExportOptions

The bound Oracle Cloud telemetry export options.