Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

Telemetry helpers for DCI.

Provides shims around rig-tap to capture latency and costs.

Functionsยง

current_session
Retrieve the active session ID if one is set.
record_prompt
Emit a prompt-completed telemetry event carrying token usage.
record_tool_call
Record a tool invocation and completion with latency.
with_session
Run an asynchronous closure within a telemetry session scope.