Give us a star on GitHub!
Installation
Node.js Requirement: This package requires Node.js 18 or later.
Configure credentials
Set up your environment variables:.env
Trace a workflow and task
UsewithWorkflow and withTask to create structured traces:
OpenAI Integration
Automatically instrument OpenAI SDK calls:Agent and Tool Tracing
For agentic workflows, usewithAgent and withTool:
Configuration Options
string
required
Your Keywords AI API key
string
default:"https://api.keywordsai.co"
Keywords AI API base URL
string
Name of your application for tracing identification
object
Modules to automatically instrument
Supported modules
Supported modules
boolean
default:false
If
true, sends spans immediately instead of batchingstring
default:"warn"
Logging level:
"debug", "info", "warn", "error"Next Steps
- Explore comprehensive examples
- Learn about multi-provider tracing
- Understand span management
- View all examples on GitHub