Skip to content

Class AlibabaCloudTelemetryExportOptions

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

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

public sealed class AlibabaCloudTelemetryExportOptions

objectAlibabaCloudTelemetryExportOptions

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

Gets or sets the authentication token written to the Alibaba Cloud Authentication header for OTLP/gRPC direct managed ingestion.

public string? AuthenticationToken { get; set; }

string?

This value is only used when is enabled and the protocol stays on otlp or otlp/grpc. OTLP/HTTP managed ingestion expects the supplied signal-specific endpoints to already follow the provider’s documented tokenized URL shape instead.

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

public string? HostedPlatform { get; set; }

string?

Supported values are ecs, fc / functioncompute, and openshift. The package maps them to the current OpenTelemetry cloud.platform attribute values.

Gets or sets the Alibaba Cloud Managed Service for OpenTelemetry OTLP/gRPC endpoint used for direct managed traces and metrics ingestion.

public string? ManagedGrpcEndpoint { get; set; }

string?

This endpoint is only used when is enabled, the shared Engine:Observability:Telemetry:Endpoint setting is omitted, and the protocol remains on otlp or otlp/grpc.

Gets or sets the Alibaba Cloud Managed Service for OpenTelemetry OTLP/HTTP metrics endpoint used for direct managed ingestion.

public string? ManagedHttpMetricsEndpoint { get; set; }

string?

This endpoint is only used when is enabled, the shared endpoint is omitted, and the protocol stays on otlp/http. The value should already be the full Alibaba Cloud-managed metrics URL, including any tokenized path shape required by the provider.

Gets or sets the Alibaba Cloud Managed Service for OpenTelemetry OTLP/HTTP traces endpoint used for direct managed ingestion.

public string? ManagedHttpTracesEndpoint { get; set; }

string?

This endpoint is only used when is enabled, the shared endpoint is omitted, and the protocol stays on otlp/http. The value should already be the full Alibaba Cloud-managed trace URL, including any tokenized path shape required by the provider.

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

public string? Region { get; set; }

string?

Gets or sets a value indicating whether the package should use Alibaba Cloud Managed Service for OpenTelemetry when no shared collector endpoint is configured.

public bool UseManagedOpenTelemetryIngestion { get; set; }

bool

This direct managed path is intentionally limited to traces and metrics. Logs stay on the shared collector path, SLS, or another runtime-specific route instead of being redirected implicitly.

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Binds Alibaba Cloud telemetry export options from configuration.

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

AlibabaCloudTelemetryExportOptions

The bound Alibaba Cloud telemetry export options.