TracerSystem
Central Tracer implementation backed by an EventStore.
Every recorder method packages its arguments into a TracerEvent and stores it in the underlying buffer; live consumers can subscribe via eventStore.events.
Disable the system globally with disable / enable to skip recording without changing wiring.
Mirrors the Python reference TracerSystem (tracer/tracer_system.py).
Functions
Link copied to clipboard
Drop every event from the underlying EventStore.
Link copied to clipboard
Link copied to clipboard
open suspend override fun recordLlmCall(model: String, messages: List<LlmMessage>, temperature: Double, tools: List<String>?, correlationId: String?)
Link copied to clipboard
open suspend override fun recordLlmResponse(model: String, content: String?, toolCalls: List<LlmToolCall>?, callDuration: Duration, correlationId: String?, usage: JsonObject? = null, providerModel: String? = null, finishReason: String? = null, metadata: JsonObject? = null)
Link copied to clipboard
open suspend override fun recordToolBatch(batchId: String, toolNames: List<String>, successCount: Int, failureCount: Int, callDuration: Duration, correlationId: String?, caller: String? = null)
Emitted once per parallel tool batch in addition to the per-call recordToolCall events. Serial runners do not emit batch events.
Link copied to clipboard