Class ConsoleTracer
- Namespace
- LMKit.Agents.Observability
- Assembly
- LM-Kit.NET.dll
A tracer that outputs to the console for debugging.
Useful during development to see agent execution flow. Not recommended for production use.
public sealed class ConsoleTracer : IAgentTracer
- Inheritance
-
ConsoleTracer
- Implements
- Inherited Members
Constructors
- ConsoleTracer()
Initializes a new instance of the ConsoleTracer class.
Properties
- MaxDisplayLength
Gets or sets the maximum input/output length to display.
- MinimumLevel
Gets or sets the minimum log level to display.
- ShowSpanIds
Gets or sets whether to show span IDs.
- ShowTimestamps
Gets or sets whether to show timestamps.
- UseColors
Gets or sets whether to use colors in output.
Methods
- Log(LogLevel, string, AgentSpan)
Records a log message associated with a span.
- RecordMetric(string, double, Dictionary<string, string>)
Records a metric value.
- StartAgentSpan(Agent, string, AgentSpan)
Starts a new span for an agent execution.
- StartDelegationSpan(string, string, AgentSpan)
Starts a new span for a delegation operation.
- StartInferenceSpan(string, AgentSpan)
Starts a new span for a model inference call.
- StartOrchestrationSpan(string, string)
Starts a new span for an orchestration operation.
- StartPlanningSpan(PlanningStrategy, AgentSpan)
Starts a new span for a planning operation.
- StartToolSpan(string, string, AgentSpan)
Starts a new span for a tool invocation.