Table of Contents

Class AgentTracing

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

Provides global configuration for agent tracing.

Configure the default tracer here to enable tracing across all agent executions.

public static class AgentTracing
Inheritance
AgentTracing
Inherited Members

Examples

// Enable console tracing for debugging
AgentTracing.SetTracer(new ConsoleTracer());

// Or use multiple tracers
AgentTracing.SetTracer(new CompositeTracer()
    .Add(new ConsoleTracer())
    .Add(myOpenTelemetryTracer));

Properties

IsEnabled

Gets or sets whether tracing is enabled globally.

When disabled, all tracing calls use the NoOpTracer regardless of configuration.

Tracer

Gets the current global tracer.

Methods

Disable()

Disables all tracing.

EnableConsoleTracing()

Enables console tracing with default settings.

EnableConsoleTracing(Action<ConsoleTracer>)

Enables console tracing with custom settings.

Reset()

Resets tracing to the default (disabled) state.

SetTracer(IAgentTracer)

Sets the global tracer.