Table of Contents

Interface IAgentTracer

Namespace
LMKit.Agents.Observability
Assembly
LM-Kit.NET.dll

Interface for tracing agent operations.

Implement this interface to integrate with your preferred observability system (OpenTelemetry, Application Insights, custom logging, etc.).

public interface IAgentTracer

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.