Table of Contents

Class TimelineEntry

Namespace
JD.AI.Core.Tracing
Assembly
JD.AI.Core.dll

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

Dictionary<string, string>

Duration

public TimeSpan Duration { get; }

Property Value

TimeSpan

EndTime

public DateTimeOffset EndTime { get; set; }

Property Value

DateTimeOffset

ErrorMessage

public string? ErrorMessage { get; set; }

Property Value

string

Operation

public string Operation { get; init; }

Property Value

string

ParentSpanId

public string? ParentSpanId { get; init; }

Property Value

string

SpanId

public string SpanId { get; init; }

Property Value

string

StartTime

public DateTimeOffset StartTime { get; init; }

Property Value

DateTimeOffset

Status

public string Status { get; set; }

Property Value

string

Methods

Complete(string, string?)

Completes this entry, recording end time and status.

public void Complete(string status = "ok", string? error = null)

Parameters

status string
error string