Quickstart
Once you have reviewed which events to track, you can use one of our SDK's in your application to start tracking events.
Install SDK
Firstly you need to install one of our SDK's (Python, Node.js, Javascript Web) in your application:
Initialise SDK and authenticate with Trubrics
Now ensure that Trubrics is imported & initialised in your app:
Project API key
Your trubrics API key is unique to your project. Login to Trubrics, and copy your project API key from the settings
page. This is a write only API key that allows you to push events.
Track user events (Sign Up, Conversion, etc.)
For more information on SDK's and how to track events, please refer to the SDK documentation.
Track AI events (Prompts, Generations, etc.)
If you are using Open AI, you can easily start tracking prompts, generations and tool calls:
In order to automatically detect LLM calls, your LLM SDK must be fed into the Trubrics constructor:
Project API key
Your trubrics API key is unique to your project. Login to Trubrics, and copy your project API key from the settings
page. This is a write only API key that allows you to push events.
Now start tacking prompts, generations and tool calls from OpenAI by using the withProperties wrapper: