Table of Contents

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

disposing bool

True if called from Dispose(), false if called from finalizer.

ExportTelemetryAsync(TelemetryExportFormat, CancellationToken)

Exports telemetry data.

public abstract Task ExportTelemetryAsync(TelemetryExportFormat format, CancellationToken cancellationToken)

Parameters

format TelemetryExportFormat

The export format.

cancellationToken CancellationToken

The 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

kernelName string

The kernel name.

executionTime TimeSpan

The execution time.

deviceId string

The device identifier.

success bool

Whether the execution was successful.

metadata Dictionary<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)

Parameters

operationType string

The operation type.

bytes long

The number of bytes.

duration TimeSpan

The operation duration.

deviceId string

The device identifier.

success bool

Whether the operation was successful.