What to instrument
Start by capturing the parts of the agent run that explain what happened.| Evidence | What to send | Why it matters |
|---|---|---|
| Traces | One trace for each request, conversation turn, job, or agent task. | Gives Adaline the full unit of work to inspect, search, group, and improve. |
| Spans | Model calls, tool calls, retrieval, embeddings, guardrails, functions, commands, and custom workflow steps. | Shows where the agent spent time, used tools, failed, retried, or produced the final answer. |
| Sessions | Stable session, conversation, journey, task, or trajectory identifiers. | Connects multiple traces into a user journey or coding-agent run. |
| Inputs and outputs | Prompt messages, model responses, tool arguments, tool responses, retrieved context, and safe summaries. | Lets reviewers and evaluators understand the exact evidence behind a result. |
| Operational signals | Status, latency, tokens, cost, model, provider, environment, release, route, prompt, and agent identity. | Makes filtering, release review, cost analysis, and regression investigation practical. |
| Quality signals | User feedback, application outcome, evaluator score, escalation state, task completion, or human-review result. | Helps Adaline distinguish healthy traffic from failures that need coverage or improvement. |
Choose an integration path
Use the path that matches how much control you need.| Path | Best for | What you get |
|---|---|---|
| With Adaline Integrations | Apps already using AI frameworks, providers, gateways, agents, or OpenTelemetry. | Framework-native logging with less custom trace code. |
| With Adaline SDKs | TypeScript or Python applications that need explicit traces, spans, sessions, variables, and metadata. | Full control over how production evidence is structured. |
| With Adaline API | Any language, backend, queue, worker, edge runtime, CI job, or custom system. | Direct REST calls for traces, spans, updates, feedback, and platform resources. |
| With Adaline Proxy | Quick provider-compatible setup when changing the AI provider base URL is easiest. | Automatic traces for provider calls with minimal code changes. |
| Coding-agent integration | Teams using Cursor, Windsurf, Claude Code, Cline, or another coding agent. | Copy-paste integration context so your coding agent can wire Adaline into your app. |
Integration methods
- Integrations
- SDKs
- API
- Proxy
Use Adaline Integrations when your agent already runs through a supported framework, provider SDK, gateway, or OpenTelemetry pipeline.Common starting points include LangChain, LangGraph, LlamaIndex, LiteLLM, Vercel AI SDK, OpenTelemetry, and provider integrations.Use this when: you want Adaline logs without hand-modeling every span yourself.
Metadata that makes logs useful
Metadata is what turns raw logs into product, engineering, support, and release workflows.| Metadata | Examples | Used by |
|---|---|---|
| Environment | production, staging, qa | Release review, filtering, dashboards, saved views. |
| Release or build | Commit SHA, deployment ID, version, experiment arm. | Drift investigation and post-release watch windows. |
| Route or workflow | checkout-assistant, support-chat, training-plan-generator. | Behavior maps, Monitor breakdowns, support triage. |
| Prompt or agent identity | Prompt name, prompt ID, agent name, agent type, workflow step. | Improve cycles, prompt ownership, evaluator routing. |
| Session or trajectory ID | Conversation ID, task ID, coding-agent run ID. | Sessions, trajectories, multi-turn investigation. |
| Safe customer segment | Plan tier, region, beta cohort, hashed tenant ID. | Customer-safe filtering without exposing private identifiers. |
| Outcome | Success, failed, escalated, partial, user-reported issue, task complete. | Behavior severity, issue detection, evaluation, and triage. |
Verify your first trace
After instrumenting, run a known request in staging and inspect it in Logs. You are integrated when:- The trace appears in Adaline within a few seconds.
- The trace name describes the workflow or request.
- Spans show the model calls, tool calls, retrieval, command, or custom steps that matter.
- Status, latency, model, provider, tokens, and cost appear where supported.
- Tags or attributes identify environment, release, route, prompt, agent, and session context.
- A teammate can open the trace and understand what happened without asking the original engineer.
From logs to improvement
Instrumentation feeds every later Platform workflow:| Workflow | How instrumentation helps |
|---|---|
| Logs | Gives your team exact traces, spans, sessions, filters, search, costs, latency, tokens, and evaluator scores. |
| Behaviors | Lets Adaline group repeated user, assistant, tool, and coding-agent patterns from production evidence. |
| Evaluators and Datasets | Turns real traces, feedback, edge cases, and outcomes into durable quality checks. |
| Improve | Gives improvement cycles enough evidence to propose prompt candidates with reviewable examples and regressions. |
| Deploy | Lets teams compare a release against the same metadata, behaviors, evals, and logs after shipping. |
With Adaline Integrations
Connect frameworks, providers, agents, gateways, and OpenTelemetry pipelines.
With Adaline SDKs
Create traces, spans, sessions, variables, and metadata from TypeScript or Python.
With Adaline API
Send logs directly from any language, runtime, worker, or custom system.
With Adaline Proxy
Route provider calls through Adaline for fast logging with minimal code changes.
Log user feedback
Attach user feedback, outcomes, and review signals to production traces.
Advanced usage
Model complex workflows, streaming, custom spans, reference IDs, and multi-service traces.