Table of Contents

Class DistributedTracingOptions

Namespace
DotCompute.Core.Telemetry.Options
Assembly
DotCompute.Core.dll

Configuration options for distributed tracing functionality. Provides settings for trace export limits, retention, and sampling.

public sealed class DistributedTracingOptions
Inheritance
DistributedTracingOptions
Inherited Members

Properties

EnableSampling

Gets or sets a value indicating whether sampling is enabled. When enabled, only a percentage of traces are captured based on the sampling rate. Default value is true.

public bool EnableSampling { get; set; }

Property Value

bool

true if sampling is enabled; otherwise, false.

MaxTracesPerExport

Gets or sets the maximum number of traces to export in a single batch. Default value is 1000 traces.

public int MaxTracesPerExport { get; set; }

Property Value

int

The maximum number of traces per export batch.

SamplingRate

Gets or sets the sampling rate as a decimal value between 0.0 and 1.0. A value of 0.1 means 10% of traces will be sampled. Default value is 0.1 (10%).

public double SamplingRate { get; set; }

Property Value

double

The sampling rate as a decimal between 0.0 and 1.0.

TraceRetentionHours

Gets or sets the trace retention period in hours. Traces older than this period may be purged from storage. Default value is 24 hours.

public int TraceRetentionHours { get; set; }

Property Value

int

The trace retention period in hours.