Table of Contents

Class TelemetryOptions

Namespace
DotCompute.Abstractions.Interfaces.Telemetry
Assembly
DotCompute.Abstractions.dll

Telemetry configuration options for the DotCompute telemetry system.

public class TelemetryOptions
Inheritance
TelemetryOptions
Inherited Members

Properties

CustomExporters

Gets or sets custom exporters.

public IList<ITelemetryExporter> CustomExporters { get; }

Property Value

IList<ITelemetryExporter>

EnableApplicationInsights

Gets or sets whether to export to Application Insights.

public bool EnableApplicationInsights { get; set; }

Property Value

bool

EnableAsyncProcessing

Gets or sets whether asynchronous processing is enabled for telemetry data.

public bool EnableAsyncProcessing { get; set; }

Property Value

bool

EnableOpenTelemetry

Gets or sets whether to export to OpenTelemetry.

public bool EnableOpenTelemetry { get; set; }

Property Value

bool

EnablePrometheus

Gets or sets whether to export to Prometheus.

public bool EnablePrometheus { get; set; }

Property Value

bool

Enabled

Gets or sets whether telemetry is enabled.

public bool Enabled { get; set; }

Property Value

bool

Environment

Gets or sets the environment name.

public string Environment { get; set; }

Property Value

string

IncludeDetailedMetrics

Gets or sets whether to include detailed metrics.

public bool IncludeDetailedMetrics { get; set; }

Property Value

bool

IsEnabled

Gets or sets whether telemetry is enabled (alias for Enabled).

public bool IsEnabled { get; set; }

Property Value

bool

LogTelemetryErrors

Gets or sets whether to log telemetry errors to the configured logger.

public bool LogTelemetryErrors { get; set; }

Property Value

bool

MetricCollectionInterval

Gets or sets metric collection interval.

public TimeSpan MetricCollectionInterval { get; set; }

Property Value

TimeSpan

SamplingRate

Gets or sets the sampling rate (0.0 to 1.0).

public double SamplingRate { get; set; }

Property Value

double

ServiceName

Gets or sets the service name for telemetry.

public string ServiceName { get; set; }

Property Value

string

ServiceVersion

Gets or sets the service version.

public string? ServiceVersion { get; set; }

Property Value

string

ThrowOnTelemetryErrors

Gets or sets whether to throw exceptions when telemetry errors occur.

public bool ThrowOnTelemetryErrors { get; set; }

Property Value

bool

TrackOverhead

Gets or sets whether to track telemetry collection overhead.

public bool TrackOverhead { get; set; }

Property Value

bool