Table of Contents

Class ExperimentalFeatureTelemetry

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

Provides telemetry tracking for experimental feature usage. Helps the team understand which experimental features are being used and guides stabilization priorities.

public static class ExperimentalFeatureTelemetry
Inheritance
ExperimentalFeatureTelemetry
Inherited Members

Remarks

All telemetry is local-only by default. No data is sent externally unless explicitly configured by the user.

Properties

Enabled

Gets or sets whether telemetry is enabled.

public static bool Enabled { get; set; }

Property Value

bool

Methods

Configure(ILogger)

Configures the telemetry logger.

public static void Configure(ILogger logger)

Parameters

logger ILogger

Logger for telemetry output.

GetUsageStatistics()

Gets usage statistics for all experimental features.

public static IReadOnlyDictionary<string, FeatureUsageStats> GetUsageStatistics()

Returns

IReadOnlyDictionary<string, FeatureUsageStats>

Dictionary of diagnostic IDs to usage statistics.

GetUsageSummary()

Gets a summary of experimental feature usage.

public static string GetUsageSummary()

Returns

string

Formatted summary string.

RecordError(string, Exception)

Records an error in an experimental feature.

public static void RecordError(string diagnosticId, Exception error)

Parameters

diagnosticId string

The diagnostic ID.

error Exception

The error that occurred.

RecordUsage(string, string, string?)

Records usage of an experimental feature.

public static void RecordUsage(string diagnosticId, string featureName, string? context = null)

Parameters

diagnosticId string

The diagnostic ID (e.g., DOTCOMPUTE0001).

featureName string

Human-readable feature name.

context string

Optional context about the usage.

Reset()

Resets all usage statistics.

public static void Reset()