Observability
Traces and Logs
Monitor and debug your prompts using OpenTelemetry
Puzzlet uses OpenTelemetry for collecting telemetry data, similar to AgentMark’s observability system. This provides a vendor-agnostic way to collect distributed traces and metrics for your prompt executions.
Enabling Tracing
Enable tracing in your Puzzlet client:
Collected Spans
Puzzlet records the following OpenTelemetry spans:
Span Type | Description | Attributes |
---|---|---|
ai.inference | Full length of the inference call | operation.name , ai.operationId , ai.prompt , ai.response.text , ai.response.toolCalls , ai.response.finishReason |
ai.toolCall | Individual tool executions | operation.name , ai.operationId , ai.toolCall.name , ai.toolCall.args , ai.toolCall.result |
ai.stream | Streaming response data | ai.response.msToFirstChunk , ai.response.msToFinish , ai.response.avgCompletionTokensPerSecond |
Basic LLM Span Information
Each LLM span contains:
Attribute | Description |
---|---|
ai.model.id | Model identifier |
ai.model.provider | Model provider name |
ai.usage.promptTokens | Number of prompt tokens |
ai.usage.completionTokens | Number of completion tokens |
ai.settings.maxRetries | Maximum retry attempts |
ai.telemetry.functionId | Function identifier |
ai.telemetry.metadata.* | Custom metadata |
Viewing Traces
Traces can be viewed in the Puzzlet dashboard under the “Traces” tab. Each trace shows:
- Complete prompt execution timeline
- Tool calls and their durations
- Token usage and costs
- Custom metadata and attributes
- Error information (if any)
Best Practices
- Use meaningful function IDs for easy filtering
- Add relevant metadata for debugging context
- Monitor token usage and costs regularly
- Enable tracing in production environments
- Use the dashboard’s filtering capabilities to debug specific issues
Learn More
Have Questions?
We’re here to help! Choose the best way to reach us:
Join our Discord community for quick answers and discussions
Email us at hello@puzzlet.ai for support
Schedule an Enterprise Demo to learn about our business solutions