Table of Contents

Class NoOpTracer

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

A tracer implementation that does nothing.

Use this when tracing is disabled or not needed. All operations return immediately with minimal overhead.

public sealed class NoOpTracer : IAgentTracer
Inheritance
NoOpTracer
Implements
Inherited Members

Examples

Using the singleton no-op tracer to disable tracing without changing call sites:

using LMKit.Agents.Observability;

IAgentTracer tracer = featureFlags.TracingEnabled ? new InMemoryTracer() : NoOpTracer.Instance;

Properties

Instance

Gets the singleton instance.

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.

Share