Table of Contents

Class StructuredLogger

Namespace
DotCompute.Abstractions.Telemetry.Providers
Assembly
DotCompute.Abstractions.dll

Abstract base class for structured loggers.

public abstract class StructuredLogger : IDisposable
Inheritance
StructuredLogger
Implements
Inherited Members
Extension Methods

Methods

Dispose()

Disposes the structured logger.

public void Dispose()

Dispose(bool)

Releases resources used by the structured logger.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

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

LogKernelExecution(string, string, TimeSpan, KernelPerformanceMetrics, string?, Exception?)

Logs a kernel execution event.

public abstract void LogKernelExecution(string kernelName, string deviceId, TimeSpan executionTime, KernelPerformanceMetrics metrics, string? correlationId, Exception? exception)

Parameters

kernelName string

The kernel name.

deviceId string

The device ID.

executionTime TimeSpan

The execution time.

metrics KernelPerformanceMetrics

The performance metrics.

correlationId string

The correlation ID.

exception Exception

The exception, if any.

LogMemoryOperation(string, string, long, TimeSpan, MemoryAccessMetrics, string?, Exception?)

Logs a memory operation event.

public abstract void LogMemoryOperation(string operationType, string deviceId, long bytes, TimeSpan duration, MemoryAccessMetrics metrics, string? correlationId, Exception? exception)

Parameters

operationType string

The operation type.

deviceId string

The device ID.

bytes long

The number of bytes.

duration TimeSpan

The operation duration.

metrics MemoryAccessMetrics

The memory metrics.

correlationId string

The correlation ID.

exception Exception

The exception, if any.