Table of Contents

Class TelemetryConfiguration

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

Configuration settings for telemetry collection and reporting. Defines what metrics are collected and how they are processed.

public sealed class TelemetryConfiguration
Inheritance
TelemetryConfiguration
Inherited Members

Properties

AdditionalOptions

Gets or sets additional configuration options.

public Dictionary<string, object> AdditionalOptions { get; init; }

Property Value

Dictionary<string, object>

AggregateMetrics

Gets or sets whether to aggregate metrics before export.

public bool AggregateMetrics { get; set; }

Property Value

bool

AggregationWindow

Gets or sets the aggregation window size.

public TimeSpan AggregationWindow { get; set; }

Property Value

TimeSpan

BatchSize

Gets or sets the batch size for telemetry exports.

public int BatchSize { get; set; }

Property Value

int

CollectExecutionTraces

Gets or sets whether to collect execution traces.

public bool CollectExecutionTraces { get; set; }

Property Value

bool

CollectHardwareMetrics

Gets or sets whether to collect hardware metrics (GPU, CPU utilization).

public bool CollectHardwareMetrics { get; set; }

Property Value

bool

CollectMemoryMetrics

Gets or sets whether to collect memory metrics.

public bool CollectMemoryMetrics { get; set; }

Property Value

bool

CollectPerformanceMetrics

Gets or sets whether to collect performance metrics.

public bool CollectPerformanceMetrics { get; set; }

Property Value

bool

CollectionInterval

Gets or sets the metrics collection interval.

public TimeSpan CollectionInterval { get; set; }

Property Value

TimeSpan

CompressExports

Gets or sets whether to compress telemetry data before export.

public bool CompressExports { get; set; }

Property Value

bool

CustomTags

Gets or sets custom tags to include with all telemetry data.

public Dictionary<string, string> CustomTags { get; init; }

Property Value

Dictionary<string, string>

EnableDetailedDiagnostics

Gets or sets whether to include detailed diagnostics. Warning: This can significantly impact performance.

public bool EnableDetailedDiagnostics { get; set; }

Property Value

bool

Enabled

Gets or sets whether telemetry collection is enabled.

public bool Enabled { get; set; }

Property Value

bool

ExportInterval

Gets or sets the export interval for telemetry data.

public TimeSpan ExportInterval { get; set; }

Property Value

TimeSpan

ExportTargets

Gets or sets the telemetry export targets.

public IList<TelemetryExportTarget> ExportTargets { get; init; }

Property Value

IList<TelemetryExportTarget>

IncludeStackTraces

Gets or sets whether to include stack traces in telemetry.

public bool IncludeStackTraces { get; set; }

Property Value

bool

MaxBufferSize

Gets or sets the maximum buffer size for telemetry data. When exceeded, oldest data is discarded.

public int MaxBufferSize { get; set; }

Property Value

int

MaxTraceDepth

Gets or sets the maximum trace depth for execution traces.

public int MaxTraceDepth { get; set; }

Property Value

int

MinimumSeverity

Gets or sets the minimum severity level for telemetry events.

public TelemetrySeverity MinimumSeverity { get; set; }

Property Value

TelemetrySeverity

RetentionPeriod

Gets or sets the maximum retention period for telemetry data.

public TimeSpan RetentionPeriod { get; set; }

Property Value

TimeSpan

SamplingRate

Gets or sets the sampling rate for metrics (0-1). 1.0 means collect all metrics, 0.5 means sample 50%, etc.

public double SamplingRate { get; set; }

Property Value

double

ServiceName

Gets or sets the service name for telemetry identification.

public string ServiceName { get; set; }

Property Value

string

ServiceVersion

Gets or sets the service version for telemetry identification.

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