Class TimelineEntry
A single operation in the execution timeline.
public sealed class TimelineEntry
- Inheritance
-
TimelineEntry
- Inherited Members
Properties
Attributes
[SuppressMessage("Design", "MA0016:Prefer using collection abstraction instead of implementation", Justification = "Attributes are a simple key-value bag")]
public Dictionary<string, string> Attributes { get; }
Property Value
Duration
public TimeSpan Duration { get; }
Property Value
EndTime
public DateTimeOffset EndTime { get; set; }
Property Value
ErrorMessage
public string? ErrorMessage { get; set; }
Property Value
Operation
public string Operation { get; init; }
Property Value
ParentSpanId
public string? ParentSpanId { get; init; }
Property Value
SpanId
public string SpanId { get; init; }
Property Value
StartTime
public DateTimeOffset StartTime { get; init; }
Property Value
Status
public string Status { get; set; }
Property Value
Methods
Complete(string, string?)
Completes this entry, recording end time and status.
public void Complete(string status = "ok", string? error = null)