Your LLM app stopped being a black box.
Trace every request through your pipeline. Watch latency, token cost, and error rates in real time, span by span.
npm i @thermal/sdk · 2 lines · no agent to run
It worked in the demo. In production it just got slow, expensive, and silent.
Silent latency spikes
A provider degrades, a retry storm kicks in, p95 doubles. Nobody sees it until users do.
Runaway token spend
One verbose prompt template ships to prod and quietly triples your monthly bill.
Invisible failures
Malformed JSON, truncated output, tool-call loops. Returned as 200 OK, logged nowhere.
Four signals, captured on every request.
Auto-instrumented at the SDK boundary. No manual timers, no sampling gaps.
p50 / p95 / p99, per span
Spend per route, model, and user.
Typed failures, not just 500s.
- schema_invalid1.4%
- rate_limited0.9%
- timeout0.5%
- tool_loop0.3%
Follow one request across every hop.
Retrieval, embeddings, the model call, tool calls, and parsing, stitched into a single waterfall with full context propagation.
Click a span. See exactly where the time and the money went.
openai.chat
POST api.openai.com/v1/chat/completions · model gpt-4o · 2,310 in / 600 out tokens. Bulk of request time. Consider streaming or a smaller model for this route.
Wire it in with two lines. Keep your stack.
Wrap your client once. Thermal auto-captures spans, tokens, and errors from the calls you already make. Works with OpenAI, Anthropic, and LangChain out of the box.
- ▹ OpenTelemetry-native, no proprietary agent
- ▹ Async export, sub-millisecond overhead
- ▹ Drop-in for Python and TypeScript
# pip install thermal-sdk openai
from thermal import instrument
from openai import OpenAI
client = instrument(OpenAI()) # that's the whole setup
resp = client.chat.completions.create(
model="gpt-4o",
messages=messages,
)
# latency, tokens, cost + a full trace: captured
“We cut p95 latency 38% and our monthly token bill by $7k in the first week, just by seeing which spans were actually slow.”
Start monitoring in the next five minutes.
Free for the first 1M spans a month. No credit card, no sales call, no agent to deploy.
Already have a key? Read the docs →