Class TraceData
- Namespace
- DotCompute.Core.Telemetry.Traces
- Assembly
- DotCompute.Core.dll
Represents complete trace data including all spans, device operations, and analysis results. Contains the comprehensive information captured during a distributed trace execution.
public sealed class TraceData
- Inheritance
-
TraceData
- Inherited Members
Properties
Analysis
Gets or sets the analysis results for this trace. Contains performance insights and optimization recommendations.
public TraceAnalysis? Analysis { get; set; }
Property Value
- TraceAnalysis
The trace analysis results or null if analysis hasn't been performed.
CorrelationId
Gets or sets the correlation identifier for this trace. Used for correlating related operations within the same trace.
public string CorrelationId { get; set; }
Property Value
- string
The correlation identifier as a string.
DeviceOperations
Gets or sets device operations tracked within this trace. Maps device IDs to their corresponding operation summaries.
public Dictionary<string, DeviceOperationTrace> DeviceOperations { get; init; }
Property Value
- Dictionary<string, DeviceOperationTrace>
A dictionary mapping device IDs to operation traces.
EndTime
Gets or sets the timestamp when the trace ended. Represents the completion of all operations within the trace.
public DateTimeOffset EndTime { get; set; }
Property Value
- DateTimeOffset
The end time as a DateTimeOffset.
OperationName
Gets or sets the name of the root operation for this trace. Typically represents the high-level operation being traced.
public string OperationName { get; set; }
Property Value
- string
The operation name as a string.
Spans
Gets or sets all spans that belong to this trace. Each span represents an individual operation within the trace.
public IList<SpanData> Spans { get; init; }
Property Value
StartTime
Gets or sets the timestamp when the trace started. Represents the beginning of the root operation.
public DateTimeOffset StartTime { get; set; }
Property Value
- DateTimeOffset
The start time as a DateTimeOffset.
Status
Gets or sets the overall status of the trace execution. Indicates whether the trace completed successfully or encountered issues.
public TraceStatus Status { get; set; }
Property Value
- TraceStatus
The trace status from the TraceStatus enumeration.
Tags
Gets or sets the tags associated with this trace. Tags are key-value pairs that provide additional metadata about the trace.
public Dictionary<string, object?> Tags { get; init; }
Property Value
- Dictionary<string, object>
A dictionary of tag key-value pairs.
TotalDuration
Gets or sets the total duration of the trace. Calculated as the difference between end time and start time.
public TimeSpan TotalDuration { get; set; }
Property Value
- TimeSpan
The total duration as a TimeSpan.
TraceId
Gets or sets the unique trace identifier. Used to identify this specific trace across service boundaries.
public string TraceId { get; set; }
Property Value
- string
The trace identifier as a string.