Table of Contents

Class ExecutionTimeline

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

Records a timeline of operations within a single turn for the /trace command. Thread-safe for concurrent tool invocations.

public sealed class ExecutionTimeline
Inheritance
ExecutionTimeline
Inherited Members

Properties

Entries

All recorded entries, ordered by start time.

public IReadOnlyList<TimelineEntry> Entries { get; }

Property Value

IReadOnlyList<TimelineEntry>

TotalDuration

Total wall-clock duration of all entries.

public TimeSpan TotalDuration { get; }

Property Value

TimeSpan

Methods

BeginOperation(string, string?, Dictionary<string, string>?)

Begins recording an operation and returns a handle to complete it.

public TimelineEntry BeginOperation(string operation, string? parentSpanId = null, Dictionary<string, string>? attributes = null)

Parameters

operation string
parentSpanId string
attributes Dictionary<string, string>

Returns

TimelineEntry