Table of Contents

Interface ITraceExporter

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

Interface for exporting traces to external systems.

public interface ITraceExporter

Examples

Implementing a minimal exporter that ships every completed span to a sink:

using LMKit.Agents.Observability;

public sealed class StdoutTraceExporter : ITraceExporter { public void Export(AgentSpan span) => Console.WriteLine($"{span.OperationName} {span.Duration.TotalMilliseconds:F0} ms [{span.Status}]");

public void Flush() { }

}

Methods

Export(AgentSpan)

Exports a completed span.

Flush()

Flushes any buffered spans.

Share