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
Methods
Configure(ILogger)
Configures the telemetry logger.
public static void Configure(ILogger logger)
Parameters
loggerILoggerLogger 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
RecordUsage(string, string, string?)
Records usage of an experimental feature.
public static void RecordUsage(string diagnosticId, string featureName, string? context = null)
Parameters
diagnosticIdstringThe diagnostic ID (e.g., DOTCOMPUTE0001).
featureNamestringHuman-readable feature name.
contextstringOptional context about the usage.
Reset()
Resets all usage statistics.
public static void Reset()