Logging and Metadata
Attach structured data to executions and checkpoints.
Channel
What it does
How you use it
Attaching metadata with kitaru.log()
kitaru.log()from kitaru import checkpoint
import kitaru
@checkpoint
def call_model(prompt: str) -> str:
response = model.generate(prompt)
kitaru.log(
tokens=response.usage.total_tokens,
cost=response.usage.cost,
model=response.model,
)
return response.textHow targeting works
Repeated keys and merging behavior
Value type
Behavior
What values are accepted
Runtime logs (separate system)
Next steps
Last updated
Was this helpful?