| name | adaline-logs |
| description | Send traces and spans to Adaline for AI agent observability. Use when instrumenting LLM calls, tools, retrieval, embeddings, guardrails, or custom operations. |
Adaline Logs
Concepts
Adaline Logs captures AI application execution as traces and spans.
Key terms:
- Trace — one end-to-end user request, agent run, job, or conversation turn
- Span — one operation inside a trace, such as an LLM call or retrieval step
- referenceId — caller-supplied ID for stitching traces/spans across services
- sessionId — groups related traces, such as a chat thread
- Content type — semantic span payload:
Model, ModelStream, Tool, Retrieval, Embeddings, Function, Guardrail, or Other
Configuration
Set these environment variables when credentials are available:
ADALINE_API_KEY — workspace API key from Admin > API Keys
ADALINE_PROJECT_ID — project ID
Base URL: https://api.adaline.ai/v2
Quick Start
TypeScript SDK
import { Adaline } from '@adaline/client';
import type { LogSpanContent } from ;
adaline = ();
monitor = adaline.({ : process..! });
trace = monitor.({ : , : });
span = trace.({
: ,
: ,
});
span.({
: ,
: {
: ,
: ,
: ,
: .(openaiRequest),
: .(openaiResponse),
} ,
});
span.();
trace.({ : });
trace.();
monitor.();
monitor.();