Table of Contents

Class DeviceOperationTrace

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

Tracks operations performed on a specific compute device within a trace. Provides aggregated information about device usage and active spans.

public sealed class DeviceOperationTrace
Inheritance
DeviceOperationTrace
Inherited Members

Properties

ActiveSpans

Gets the collection of currently active spans on this device. Spans are added when operations start and removed when they complete.

public ConcurrentBag<SpanContext> ActiveSpans { get; }

Property Value

ConcurrentBag<SpanContext>

A thread-safe collection of active span contexts.

DeviceId

Gets or sets the identifier of the device being tracked. Used to correlate operations to specific compute devices.

public string DeviceId { get; set; }

Property Value

string

The device identifier as a string.

FirstOperationTime

Gets or sets the timestamp of the first operation on this device. Used for calculating the total timespan of device usage.

public DateTimeOffset FirstOperationTime { get; set; }

Property Value

DateTimeOffset

The first operation time as a DateTimeOffset.

LastOperationTime

Gets or sets the timestamp of the most recent operation on this device. Updated whenever a new operation is started on the device.

public DateTimeOffset LastOperationTime { get; set; }

Property Value

DateTimeOffset

The last operation time as a DateTimeOffset.

OperationCount

Gets or sets the total number of operations performed on this device. Incremented each time a new operation is started on the device.

public int OperationCount { get; set; }

Property Value

int

The total operation count as an integer.