Keys authenticate event ingestion from northstar. The full value is shown once at creation.
Use this key as cloudApiKey when configuring @traice/sdk.
| Name | Preview | Created | Last used | Status | |
|---|---|---|---|---|---|
| Production | lm_live_prd1… | 7/12/2026 | 8/24/2026, 3:42:40 AM | Active | |
| Staging | lm_live_stg1… | 7/4/2026 | 8/24/2026, 3:59:40 AM | Active | |
| Development | lm_live_dev1… | 6/21/2026 | 8/24/2026, 4:16:40 AM | Active |
Swap in the key you copied above, choose your language, then run the example. The event appears on Logs within seconds.
npm install @traice/sdk openaiimport OpenAI from "openai";
import { configure, flush, meter } from "@traice/sdk";
configure({
adapters: ["cloud"],
cloudApiKey: "lm_live_YOUR_API_KEY",
cloudEndpoint: "https://www.runtraice.com/api/v1/events",
});
const openai = new OpenAI();
await meter(
() => openai.chat.completions.create({
model: "gpt-4o-mini",
messages: [{ role: "user", content: "Say hello" }],
}),
{ feature: "hello", tenantId: "customer_42" },
);
await flush();Prefer the SDK or want the full setup guide? Open the install guide.