JavaScript SDK
Installation
The llmonitor
module is lightweight and works with Node JS, Deno, Cloudflare Workers, Vercel Edge functions and even Bun.
Node
Deno
Note for Cloudflare Workers
Setup
Start by importing the llmonitor
module:
Then initialize the module with your unique app ID.
Option 1: Automatic using environment variables (recommended):
Option 2: Manually using the .init
method:
The .init
method accepts the following arguments:
LangChain
Usage with LangChain JS.
OpenAI
Automatically track your OpenAI calls.
User Tracking
Identify your users.
Tagging
Segment your queries with tags.
Manual Integration
Learn how to use .trackEvent()
Serverless
Use with Lambda, Cloudflare Workers, Edge Functions, etc.
Agents & Tools
Setup tracing by tracking agents & tools
API Reference
Full list of methods and classes.
Examples
Find examples of usage on GitHub.