Class TelemetryProvider
- Namespace
- DotCompute.Abstractions.Telemetry.Providers
- Assembly
- DotCompute.Abstractions.dll
Abstract base class for telemetry providers.
public abstract class TelemetryProvider : IDisposable
- Inheritance
-
TelemetryProvider
- Implements
- Derived
- Inherited Members
- Extension Methods
Methods
Dispose()
Disposes the telemetry provider.
public void Dispose()
Dispose(bool)
Releases resources used by the telemetry provider.
protected virtual void Dispose(bool disposing)
Parameters
disposingboolTrue if called from Dispose(), false if called from finalizer.
ExportTelemetryAsync(TelemetryExportFormat, CancellationToken)
Exports telemetry data.
public abstract Task ExportTelemetryAsync(TelemetryExportFormat format, CancellationToken cancellationToken)
Parameters
formatTelemetryExportFormatThe export format.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task
A task representing the async operation.
GetSystemHealth()
Gets system health metrics.
public abstract SystemHealthMetrics GetSystemHealth()
Returns
- SystemHealthMetrics
The system health metrics.
RecordKernelExecution(string, TimeSpan, string, bool, Dictionary<string, object>)
Records a kernel execution event.
public abstract void RecordKernelExecution(string kernelName, TimeSpan executionTime, string deviceId, bool success, Dictionary<string, object> metadata)
Parameters
kernelNamestringThe kernel name.
executionTimeTimeSpanThe execution time.
deviceIdstringThe device identifier.
successboolWhether the execution was successful.
metadataDictionary<string, object>Additional metadata.
RecordMemoryOperation(string, long, TimeSpan, string, bool)
Records a memory operation event.
public abstract void RecordMemoryOperation(string operationType, long bytes, TimeSpan duration, string deviceId, bool success)